Skip to content

bussularf/currency_coin_converter

Repository files navigation

CurrencyCoinConverter

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add currency_coin_converter

Or add in your Gemfile gem 'currency_coin_converter' Run in console bundle install

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install currency_coin_converter

Usage

To use this gem, you need to set up an initializer for the Exchange Rate API key:

# This should be placed before the application tries to get the exchange rate.
CurrencyCoinConverter::Base.api_key = <your exchange rate api key>

In your main file you can use

require 'currency_coin_converter'

amount_in_euros = CurrencyCoinConverter::Base.convert(100, from: "USD", to: "EUR", round: 3)
puts amount_in_euros

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/bussularf/currency_coin_converter.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the CurrencyConverter project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 3

  •  
  •  
  •