class StoreAsInt::Money

Constants

ACCURACY

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

DECIMALS
SYM

Public Class Methods

extend_numerics() click to toggle source

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

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

Public Instance Methods

dollar_str(padding: 0) click to toggle source

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

# File lib/store_as_int/money.rb, line 28
def dollar_str(padding: 0)
  to_s(true, padding: padding.to_i)
end
to_cents() click to toggle source
# File lib/store_as_int/money.rb, line 32
def to_cents
  self
end