class Fxify::ExchangeRate
Public Class Methods
new()
click to toggle source
Calls superclass method
Fxify::ECBData::new
# File lib/fxify/exchange_rate.rb, line 3 def initialize super end
Public Instance Methods
at(date, from_currency, to_currency)
click to toggle source
# File lib/fxify/exchange_rate.rb, line 7 def at(date, from_currency, to_currency) rate(date, to_currency).to_f / rate(date, from_currency).to_f end