Lbank
Fetches currency rates from Lithuanian Central Bank website http://lbank.lt. Does currency conversion. Supports historic currency rates.
Installation
Add this line to your application's Gemfile:
gem 'lbank'
Usage
Get hash of current currency rates
Lbank.currency_rates
Get hash of historic currency rates
Lbank.currency_rates(Date.new(2012, 8, 4))
Convert currency
Lbank.convert_currency(10, 'LTL', 'EUR')
Convert currency using historic rates
Lbank.convert_currency(10, 'LTL', 'EUR', Date.new(2012, 8, 4))
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request