class StoreAsInt::ExchangeRate

Constants

ACCURACY

Constants ============================================================

DECIMALS
SYM

Public Class Methods

extend_numerics() click to toggle source

Class Methods ========================================================

# File lib/store_as_int/exchange_rate.rb, line 20
def self.extend_numerics
  Numeric.include StoreAsInt::ActsAsExchangeRateInt
end

Public Instance Methods

exchange_rate_str(padding: 0) click to toggle source

Instance Methods =====================================================

# File lib/store_as_int/exchange_rate.rb, line 29
def exchange_rate_str(padding: 0)
  to_s(true, padding: padding.to_i)
end
to_exchange_rate() click to toggle source
# File lib/store_as_int/exchange_rate.rb, line 33
def to_exchange_rate
  self
end