Class: Messenger::Elements::Summary

Inherits:
Components::Element show all
Defined in:
lib/messenger/components/elements/receipt/summary.rb

Instance Method Summary collapse

Methods inherited from Components::Element

#build

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