Class: MangoModel::Money

Inherits:
Object
  • Object
show all
Includes:
MangoPay::Jsonifier
Defined in:
lib/mangopay/model/money.rb

Overview

Models a financial sum

Constant Summary

Constants included from MangoPay::Jsonifier

MangoPay::Jsonifier::LOG

Instance Attribute Summary collapse

Method Summary

Methods included from MangoPay::Jsonifier

#dejsonify, #jsonify!

Instance Attribute Details

#amountObject

Integer

The amount of money in the smallest sub-division of the currency e.g. 12.60 EUR would be represented as 1260 whereas 12 JPY

would be represented as just 12



15
16
17
# File 'lib/mangopay/model/money.rb', line 15

def amount
  @amount
end

#currencyObject

CurrencyIso

Currency in which the sum is represented



10
11
12
# File 'lib/mangopay/model/money.rb', line 10

def currency
  @currency
end