0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A gem to convert currencies with ease and at real time .
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies
 Project Readme

ExchangeRate ¶ ↑

Description¶ ↑

This is a Ruby interface into the exchangerate-api service. www.exchangerate-api.com/ claims to serv accurate currency exchange rates from the European Central Reserve Bank as they are released.

Installation¶ ↑

gem install exchangerate

Usage ¶ ↑

Before you use this library please get the api key from www.exchangerate-api.com/api-key

require ‘rubygems’ require ‘exchangerate’ #To convert 300 USD to Indian Rupee er=ExchangeRate.new(“my-api-key”) er.convert(“USD”,“INR”,“300.00”) =>“14047.51”

#To convert USD to EUR

er.convert(“USD”,“INR”,“300.00”) =>“243.23”