Class: MangoModel::Money
- Inherits:
-
Object
- Object
- MangoModel::Money
- Includes:
- MangoPay::Jsonifier
- Defined in:
- lib/mangopay/model/money.rb
Overview
Models a financial sum
Constant Summary
Constants included from MangoPay::Jsonifier
Instance Attribute Summary collapse
-
#amount ⇒ Object
- Integer
-
The amount of money in the smallest sub-division of the currency e.g.
-
#currency ⇒ Object
- CurrencyIso
-
Currency in which the sum is represented.
Method Summary
Methods included from MangoPay::Jsonifier
Instance Attribute Details
#amount ⇒ Object
- 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 |
#currency ⇒ Object
- CurrencyIso
-
Currency in which the sum is represented
10 11 12 |
# File 'lib/mangopay/model/money.rb', line 10 def currency @currency end |