Module: StoreAsInt::ActsAsExchangeRateInt

Defined in:
lib/store_as_int/exchange_rate.rb

Instance Method Summary collapse

Instance Method Details

#exchange_rate_strObject



38
39
40
# File 'lib/store_as_int/exchange_rate.rb', line 38

def exchange_rate_str
  to_cents.to_s(true)
end

#to_exchange_rateObject



42
43
44
# File 'lib/store_as_int/exchange_rate.rb', line 42

def to_exchange_rate
  StoreAsInt::ExchangeRate.new self
end