module StoreAsInt::ActsAsExchangeRateInt
Public Instance Methods
exchange_rate_str(padding: 0)
click to toggle source
# File lib/store_as_int/exchange_rate.rb, line 39 def exchange_rate_str(padding: 0) to_exchange_rate.to_s(true, padding: padding.to_i) end
to_exchange_rate()
click to toggle source
# File lib/store_as_int/exchange_rate.rb, line 43 def to_exchange_rate StoreAsInt::ExchangeRate.new self end