Class: Messenger::Elements::Adjustment

Inherits:
Object
  • Object
show all
Includes:
Components::Element
Defined in:
lib/messenger/components/elements/receipt/adjustment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Components::Element

#build, #build_elements

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

#amountObject

Returns the value of attribute amount.



8
9
10
# File 'lib/messenger/components/elements/receipt/adjustment.rb', line 8

def amount
  @amount
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/messenger/components/elements/receipt/adjustment.rb', line 8

def name
  @name
end