/cbr

Ruby wrapper for The Central Bank of the Russian Federation API

Primary LanguageRubyMIT LicenseMIT

CBR

Ruby wrapper for The Central Bank of the Russian Federation API

Installation

Add this line to your application's Gemfile:

gem 'cbr'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cbr

Usage

Reference currency codes

CBR.catalog

Extract a quotation for a current day

CBR.daily

Extract a quatation for a specific day:

CBR.daily(Date.parse('12/12/2014'))

Extract currency for a specific day:

CBR.daily(Date.parse('12/12/2014'))['usd']

Dynamic of quotations of the US dollar:

CBR.dynamic('usd', Date.parse('01/12/2014'), Date.parse('12/12/2014'))

===

Sponsored by Evil Martians