Skip to content

Eviterra/central_bank_of_russia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

currency exchange for money.gem with rates from cbr.ru

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages