Module: XeroGateway::Money::ClassMethods

Defined in:
lib/xero_gateway/money.rb

Instance Method Summary collapse

Instance Method Details

#format_money(amount) ⇒ Object



8
9
10
11
12
13
# File 'lib/xero_gateway/money.rb', line 8

def format_money(amount)
  if amount.class == BigDecimal
    return amount.to_s("F")
  end
  return amount
end