class Flow::Reference::V0::Models::Currency
Public Instance Methods
to_cents(amount_in)
click to toggle source
# File lib/flow-reference.rb, line 104 def to_cents(amount_in) amount = amount_in.to_f if number_decimals > 0 (amount * (10**number_decimals)).round(0) else amount.to_i end end