Sha256: 069eb12430f33fe6584fd2763a575f8173f41f33ee14729433bd9967cdb7acf3

Contents?: true

Size: 838 Bytes

Versions: 9

Compression:

Stored size: 838 Bytes

Contents

Google Currency
===============

This gem extends Money::Bank::VariableExchange with Money::Bank::GoogleCurrency
and gives you access to the current Google Currency exchange rates.

Usage
-----

    require 'money'
    require 'money/bank/google_currency'

    # set default bank to instance of GoogleCurrency
    Money.default_bank = Money::Bank::GoogleCurrency.new

    # create a new money object, and use the standard #exchange_to method
    n = 1.to_money(:USD)
    n.exchange_to(:EUR)

An `UnknownRate` will be thrown if `#exchange_to` is called with a `Currency`
that `Money` knows, but Google does not.

An `UnknownCurrency` will be thrown if `#exchange_to` is called with a
`Currency` that `Money` does not know.

Copyright
---------

Copyright (c) 2010 Shane Emmons. See {file:LICENSE} for details.

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
google_currency-1.2.0 README.md
google_currency-1.1.1 README.md
google_currency-1.1.0 README.md
google_currency-1.0.3 README.md
google_currency-1.0.2 README.md
google_currency-1.0.1 README.md
google_currency-1.0.0 README.md
google_currency-0.1.1 README.md
google_currency-0.1.0 README.md