Class: MessageQuickly::Messaging::Receipt::Summary
- Defined in:
- lib/message_quickly/messaging/receipt/summary.rb
Instance Attribute Summary collapse
-
#shipping_cost ⇒ Object
Returns the value of attribute shipping_cost.
-
#subtotal ⇒ Object
Returns the value of attribute subtotal.
-
#total_cost ⇒ Object
Returns the value of attribute total_cost.
-
#total_tax ⇒ Object
Returns the value of attribute total_tax.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MessageQuickly::Messaging::Base
Instance Attribute Details
#shipping_cost ⇒ Object
Returns the value of attribute shipping_cost.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/summary.rb', line 6 def shipping_cost @shipping_cost end |
#subtotal ⇒ Object
Returns the value of attribute subtotal.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/summary.rb', line 6 def subtotal @subtotal end |
#total_cost ⇒ Object
Returns the value of attribute total_cost.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/summary.rb', line 6 def total_cost @total_cost end |
#total_tax ⇒ Object
Returns the value of attribute total_tax.
6 7 8 |
# File 'lib/message_quickly/messaging/receipt/summary.rb', line 6 def total_tax @total_tax end |
Instance Method Details
#to_hash ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/message_quickly/messaging/receipt/summary.rb', line 8 def to_hash { subtotal: subtotal, shipping_cost: shipping_cost, total_tax: total_tax, total_cost: total_cost } end |