Module Finance::Currency
In: lib/finance/currency.rb

This module handles currency operations.

Methods

convert  

Classes and Modules

Class Finance::Currency::RateError

Constants

CURRENCY_URL = 'http://uk.finance.yahoo.com/currency/convert'   Where to obtain currency information.
DEFAULT_CURRENCY_FIELDS = %w[ last high low net bid ask offer close open day_range year_range eps div cap nav price last ].map { |field| field.to_sym }

Attributes

currency  [RW] 

Public Class methods

Convert one currency to another. The following example converts US $100 into Euros:

 require 'finance/currency'

 Finance::Currency::convert( 'EUR', 'USD', 100 )

[Validate]