No commit activity in last 3 years
No release in over 3 years
This gem reads exchange rates from the Central Bank of Russia website. It is compatible with the money gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0.0

Runtime

>= 5.0.0
 Project Readme

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 © 2012 Eviterra. See LICENSE for details.