lib/monee/conversion.rb
# convert to cents for a target currency
#
# @param to_currency [String]
# @return [Numeric]
convert to cents for a target currency
convert to cents for a target currency
def convert_to_cents(to_currency)
      if to_currency == currency
        cents
      else
        @currency.exchange(to_currency, cents)
      end
    end
def convert_to_cents ( to_currency ) if to_currency == currency cents else @currency . exchange ( to_currency , cents ) end end
convert to cents for a target currency
convert to cents for a target currency
None
Numeric
to_currency
<not_specific>
<not_specific>
None