This gem downloads the exchange rates from the Central Bank of Russia.
$ gem install central_bank_of_russia
-
nokogiri
-
money
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.