class Messenger::Elements::Summary

Attributes

shipping_cost[RW]
subtotal[RW]
total_cost[RW]
total_tax[RW]

Public Class Methods

new(subtotal: nil, shipping_cost: nil, total_tax: nil, total_cost:) click to toggle source
# File lib/messenger/components/elements/receipt/summary.rb, line 10
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