class Fxer::Exchange::Data::Date::Currency

Attributes

key[RW]
rate[RW]

Public Instance Methods

rate=(raw_rate) click to toggle source

rate= takes one argument,

1. raw_rate, a string representing a float

and converts it into a float, and assigns it to its rate attribute

# File lib/fxer/exchange/data/date/currency.rb, line 13
def rate=(raw_rate)
  @rate = "#{raw_rate}".to_f
end