TcmbCurrency
Tcmb Currencies for Money Gem
it based on money gem, money-rails Gem, and adapted from google-currency gem
Installation
Add this line to your application's Gemfile:
gem 'money-rails'
gem 'tcmb_currency'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install tcmb_currency
Requirements
Before generating your application, you will need:
- The Ruby language (version 1.9.3)
- Rails 3.2
Usage
After the installing gems run:
$ rails g tcmb_currency:initializer
$ rails g tcmb_currency:migration
$ rake db:migrate
at last add to daily cron tasks this rake
$ rake tcmb_currency:insert_from_tcmb
And you can use it as
Money.new(1000,"USD").exchange_to(:EUR)
Money.new(1000,"USD").exchange_to(:EUR, "2013-03-02")
Contributing
Once you've made your great commits:
- Fork Gem
- Create a topic branch -
git checkout -b my_branch
- Push to your branch -
git push origin my_branch
- Create a Pull Request from your branch
- That's it!
Credits
This gem is maintained and funded by lab2023 - internet technologies
Thank you to all the contributors!
The names and logos for lab2023 are trademarks of lab2023, inc.
License
Copyright 2012 lab2023 – internet technologies