Class: Messenger::Elements::Summary
- Inherits:
-
Components::Element
- Object
- Components::Element
- Messenger::Elements::Summary
- Defined in:
- lib/messenger/components/elements/receipt/summary.rb
Instance Method Summary collapse
-
#initialize(subtotal: nil, shipping_cost: nil, total_tax: nil, total_cost:) ⇒ Summary
constructor
A new instance of Summary.
Methods inherited from Components::Element
Constructor Details
#initialize(subtotal: nil, shipping_cost: nil, total_tax: nil, total_cost:) ⇒ Summary
Returns a new instance of Summary.
6 7 8 9 10 11 |
# File 'lib/messenger/components/elements/receipt/summary.rb', line 6 def initialize(subtotal: nil, shipping_cost: nil, total_tax: nil, total_cost:) @subtotal = subtotal @shipping_cost = shipping_cost @total_tax = total_tax @total_cost = total_cost end |