Sha256: 670fe89616d2149fc96c414734fd525f94a8bc39e9d1d60d743b38bd3fbce3cf
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
Contents
# CurrencyConverter Simple Ruby API to get exchange rates from currencies using themoneyconverter.com website. You can convert currencies directly through this library. ## Installation Add this line to your application's Gemfile: gem 'currency_converter' And then execute: $ bundle install Or install it yourself as: $ gem install currency_converter ## Usage To convert between two currencies: CurrencyConverter.exchange("EUR", "USD", 100) => 132.89 CurrencyConverter.exchange("USD", "EUR", 100) => 75.15 To get the most recent exchange rate between two currencies: CurrencyConverter.exchange("EUR", "USD", 1) => 1.33 CurrencyConverter.exchange("USD", "EUR", 1) => 0.75 ## Contributing 1. Fork it 2. Add tests for it. 3. Create your feature branch (`git checkout -b my-new-feature`) 4. Commit your changes (`git commit -am 'Add some feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
currency_converter-1.0.2 | README.md |