A gem to convert currencies with ease and at real time .
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
MIT-LICENSE
README.rdoc
Rakefile
exchangerate.gemspec

README.rdoc

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”