Class: Afterpay::Components::Money

Inherits:
Base
  • Object
show all
Defined in:
lib/afterpay/components/money.rb

Instance Attribute Summary collapse

Method Summary

Methods included from Initializable

included, #initialize

Methods included from Representable

#as_json, included

Instance Attribute Details

#amountString

The amount should be a string representation of a decimal number, rounded to 2 decimal places.

Returns:

  • (String)


9
10
11
# File 'lib/afterpay/components/money.rb', line 9

def amount
  @amount
end

#currencyString

The currency is a ISO 4217 format value. Currently only USD is supported.

Returns:

  • (String)


14
15
16
# File 'lib/afterpay/components/money.rb', line 14

def currency
  @currency
end