class Epages::LineItemContainer
Constants
- KEYS
Public Class Methods
new(data)
click to toggle source
# File lib/epages/line_item_container.rb, line 12 def initialize(data) parse_attribute_as(:grand_total, data[:grandTotal], Epages::Price) parse_attribute_as(:total_before_tax, data[:totalBeforeTax], Epages::Price) parse_attribute_as(:total_tax, data[:totalTax], Epages::Price) parse_attribute_as(:line_items_sub_total, data[:lineItemsSubTotal], Epages::Price) parse_attribute_as_array_of(:product_line_items, data[:productLineItems], Epages::ProductLineItem) end