Module: StoreAsInt::ActsAsExchangeRateInt

Defined in:
lib/store_as_int/exchange_rate.rb

Instance Method Summary collapse

Instance Method Details

#exchange_rate_str(padding: 0) ⇒ Object



39
40
41
# 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_rateObject



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

def to_exchange_rate
  StoreAsInt::ExchangeRate.new self
end