module StoreAsInt::ActsAsMoneyInt
Public Instance Methods
dollar_str(padding: 0)
click to toggle source
# File lib/store_as_int/money.rb, line 38 def dollar_str(padding: 0) to_cents.to_s(true, padding: padding.to_i) end
to_cents()
click to toggle source
# File lib/store_as_int/money.rb, line 42 def to_cents StoreAsInt::Money.new self end