0.01
No commit activity in last 3 years
No release in over 3 years
Ruby Gem for currency conversion using Google Finance
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.0
~> 2.12.0
 Project Readme

GoogCurrency

Google finance provides currency conversion functionality. Integrated the scrapper to get conversion working. Uses http://www.google.com/finance/converter?a=1&from=USD&to=INR

Build Status Gem Version

Installation

Add this line to your application's Gemfile:

gem 'goog_currency'

And then execute:

$ bundle

Or install it yourself as:

$ gem install goog_currency

Usage

Sample usage

rupees = GoogCurrency.usd_to_inr(1)
pounds = GoogCurrency.usd_to_gbp(1)
yen = GoogCurrency.gbp_to_jpy(1)

Throws GoogCurrency::Exception in case of any error.

Throws GoogCurrency::NoMethodException if conversion method syntax is invalid.

Credits

girishso - Initial implementation

pankajso - Ported to use Google Finance

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

MIT License

This software is provided as is, use it your own risk.

Copyright (c) 2013 Girish Sonawane