Class: Afterpay::Components::Money
- Defined in:
- lib/afterpay/components/money.rb
Instance Attribute Summary collapse
-
#amount ⇒ String
The amount should be a string representation of a decimal number, rounded to 2 decimal places.
-
#currency ⇒ String
The currency is a ISO 4217 format value.
Method Summary
Methods included from Initializable
Methods included from Representable
Instance Attribute Details
#amount ⇒ String
The amount should be a string representation of a decimal number, rounded to 2 decimal places.
9 10 11 |
# File 'lib/afterpay/components/money.rb', line 9 def amount @amount end |
#currency ⇒ String
The currency is a ISO 4217 format value. Currently only USD is supported.
14 15 16 |
# File 'lib/afterpay/components/money.rb', line 14 def currency @currency end |