Project

cbr

0.01
No commit activity in last 3 years
No release in over 3 years
Ruby wrapper for The Central Bank of the Russian Federation API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 10.0

Runtime

~> 0.8
 Project Readme

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