Method: ExchangeRate#initialize

Defined in:
lib/exchange_rate_freska/exchange_rate.rb

#initialize(currency_options) ⇒ ExchangeRate

Returns a new instance of ExchangeRate.



8
9
10
11
12
# File 'lib/exchange_rate_freska/exchange_rate.rb', line 8

def initialize(currency_options)
  @date  = currency_options.first
  @nok   = currency_options.last["NOK"]
  @sek   = currency_options.last["SEK"]
end