Method: Money#as_us_dollar

Defined in:
lib/money/money.rb

#as_us_dollarMoney

Receive a money object with the same amount as the current Money object in american dollars.

Examples:

n = Money.new(100, "CAD").as_us_dollar
n.currency #=> #<Money::Currency id: usd>

Returns:



438
439
440
# File 'lib/money/money.rb', line 438

def as_us_dollar
  exchange_to("USD")
end