Project

ocar

0.0
No commit activity in last 3 years
No release in over 3 years
This gem permit you follow your package or another(if you have the trackID on the OCA courries service (Argentinian Courrier)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 5.0
~> 10.0

Runtime

 Project Readme

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.