Ocar
A minimal gem to get package information for the OCA service (Argentinian Courrier)
Installation
Add this line to your application's Gemfile:
gem 'ocar'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ocar
The gem depends on the typhoeus gem.
Usage
Please require the gem
require 'ocar'
To get the information about a particular package. This method will search inside all the types of packages in OCA.
Ocar.get_package 1234456
And if the package exists, will return:
@date="07/03/2015 07:22:00",
@description="Entregada",
@location="CORDOBA",
@number="0001235432",
@owner="DIAZ, Bruno",
@type="DNI">
or nil if package isn't found.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/lucasocon/ocar.
License
The gem is available as open source under the terms of the MIT License.