No description, website, or topics provided.
Clone or download
Latest commit 200ea84 Feb 8, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Redirect following addition Jan 29, 2016
spec rspec & money updated Jul 22, 2015
.gitignore First commit Jul 23, 2013
Gemfile First commit Jul 23, 2013
LICENSE.txt First commit Jul 23, 2013 add dependecies links in readme Sep 28, 2015
Rakefile First commit Jul 23, 2013
russian_central_bank.gemspec Bump version to 1.0.1 Feb 8, 2016

Build Status License


This gem extends Money::Bank::VariableExchange with Money::Bank::RussianCentralBank and gives access to the Central Bank of Russia currency exchange.


Add this line to your application's Gemfile:

gem 'russian_central_bank'

And then execute:

$ bundle

Or install it yourself as:

$ gem install russian_central_bank

NOTE: use 0.x version of russian_central_bank for > 6.0 money versions



Regular usage

require 'russian_central_bank'

bank =

Money.default_bank = bank

# Load today's rates

# Exchange 100 USD to RUB, "USD").exchange_to('RUB')

Specific date rates

# Specify rates date
bank.update_rates( - 3000), "USD").exchange_to('RUB')  # makes you feel better

# Check last rates update

# Check on which date rates were updated


# Use ttl attribute to enable rates autoupdate
bank.ttl =

# Check expiration date


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request