Class: Afterpay::Components::Discount
- Defined in:
- lib/afterpay/components/discount.rb
Instance Attribute Summary collapse
-
#amount ⇒ Afterpay::Components::Money
The discount amount.
-
#display_name ⇒ String
A display name for the discount.
Method Summary
Methods included from Initializable
Methods included from Representable
Instance Attribute Details
#amount ⇒ Afterpay::Components::Money
The discount amount.
14 15 16 |
# File 'lib/afterpay/components/discount.rb', line 14 def amount @amount end |
#display_name ⇒ String
A display name for the discount.
9 10 11 |
# File 'lib/afterpay/components/discount.rb', line 9 def display_name @display_name end |