currency exchange for money.gem with rates from cbr.ru
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
CHANGELOG.rdoc
Gemfile
LICENSE
README.rdoc
central_bank_of_russia.gemspec

README.rdoc

Introduction

This gem downloads the exchange rates from the Central Bank of Russia.

Installation

$ gem install central_bank_of_russia

Dependencies

  • nokogiri

  • money

Usage

bank = CentralBankOfRussia.new.update_rates(Date.today)
Money.default_bank = CentralBankOfRussia.new.update_rates(Date.today)
1.to_money("USD").exchange_to("RUB")
bank.exchange_with("100 RUB".to_money, "EUR")

Copyright

Copyright © 2012 Eviterra. See LICENSE for details.