t3hk0d3/russian_post

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# Russian Post Tools

[![Code Climate](https://codeclimate.com/github/t3hk0d3/russian_post.png)](https://codeclimate.com/github/t3hk0d3/russian_post)
[![Build Status](https://travis-ci.org/t3hk0d3/russian_post.png?branch=master)](https://travis-ci.org/t3hk0d3/russian_post)
[![Dependency Status](https://gemnasium.com/t3hk0d3/russian_post.png)](https://gemnasium.com/t3hk0d3/russian_post)

## Installation

Add this line to your application's Gemfile:

    gem 'russian_post'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install russian_post

## Usage

### Postal tracking

```ruby
require 'russian_post'

RussianPost::Tracking.new(tracking_code).track
# => [{...}, {...}, {...}]
```

### Captcha recognizer

```ruby
require 'russian_post'

RussianPost::Captcha.for_url(captcha_url).text
# => "96950"

RussianPost::Captcha.for_data(png_blob).text
# => "43455"
```