Sha256: 5f10873a692ab04ced3955c633189a64eb870830c6af7a0671920a9e23dfa621
Contents?: true
Size: 807 Bytes
Versions: 3
Compression:
Stored size: 807 Bytes
Contents
Yahoo Currency =============== This gem extends Money::Bank::VariableExchange with Money::Bank::YahooFinanceCurrency and gives you access to the current Yahoo! Finance exchange rates. Usage ----- require 'money' require 'money/bank/yahoo_finance_currency' # set default bank to instance of YahooFinanceCurrency Money.default_bank = Money::Bank::YahooFinanceCurrency.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 Yahoo! Finance does not. An `UnknownCurrency` will be thrown if `#exchange_to` is called with a `Currency` that `Money` does not know. Copyright --------- See {file:LICENSE} for details.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yahoo_finance_currency-0.1.4 | README.md |
yahoo_finance_currency-0.1.3 | README.md |
yahoo_finance_currency-0.1.2 | README.md |