Sha256: 511944aac475eeeb1c3712879ac5eb00b4aab4e5c2db5b7e8ff12222c54362f8

Contents?: true

Size: 1010 Bytes

Versions: 1

Compression:

Stored size: 1010 Bytes

Contents

# Ocar

A minimal gem to get package information for the OCA service (Argentinian Courrier)

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'ocar'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ocar

The gem depends on the [typhoeus](https://github.com/typhoeus/typhoeus) gem.

## Usage

Please require the gem

```ruby
require 'ocar'
```

To get the information about a particular package.
This method will search inside all the types of packages in OCA.

```ruby
Ocar.get_package 1234456
```

And if the package exists, will return:

```ruby
@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](http://opensource.org/licenses/MIT).

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ocar-0.2.1 README.md