Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

goog_currency

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goog_currency

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

Ruby versions support

Supports Ruby 1.8.7, 1.9.2 and 2.0.0

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

FAQs

Package last updated on 26 Feb 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc