Class: MessageQuickly::Messaging::Receipt::Summary

Inherits:
Base
  • Object
show all
Defined in:
lib/message_quickly/messaging/receipt/summary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from MessageQuickly::Messaging::Base

Instance Attribute Details

#shipping_costObject

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

#subtotalObject

Returns the value of attribute subtotal.



6
7
8
# File 'lib/message_quickly/messaging/receipt/summary.rb', line 6

def subtotal
  @subtotal
end

#total_costObject

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_taxObject

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_hashObject



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