Class: Messenger::Elements::Adjustment
- Inherits:
-
Object
- Object
- Messenger::Elements::Adjustment
- Includes:
- Components::Element
- Defined in:
- lib/messenger/components/elements/receipt/adjustment.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name: nil, amount: nil) ⇒ Adjustment
constructor
A new instance of Adjustment.
Methods included from Components::Element
Constructor Details
#initialize(name: nil, amount: nil) ⇒ Adjustment
Returns a new instance of Adjustment.
10 11 12 13 |
# File 'lib/messenger/components/elements/receipt/adjustment.rb', line 10 def initialize(name: nil, amount: nil) @name = name @amount = amount end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/adjustment.rb', line 8 def amount @amount end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/messenger/components/elements/receipt/adjustment.rb', line 8 def name @name end |