class Pohoda::Parsers::Ord::OrderType
Public Instance Methods
action_type()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 7 def action_type at 'ord:actionType' end
action_type_attributes()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 11 def action_type_attributes attributes_at 'ord:actionType' end
order_detail()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 19 def order_detail array_of_at(Ord::OrderItemType, ['ord:orderDetail', 'ord:orderItem']) end
order_header()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 15 def order_header submodel_at(Ord::OrderHeaderType, 'ord:orderHeader') end
order_summary()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 23 def order_summary submodel_at(Ord::OrderSummaryType, 'ord:orderSummary') end
print()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 27 def print array_of_at(Prn::PrinterSettingsType, ['ord:print', 'prn:printerSettings']) end
to_h()
click to toggle source
# File lib/pohoda/parsers/ord/order_type.rb, line 31 def to_h hash = {} hash[:attributes] = attributes hash[:action_type] = action_type if has? 'ord:actionType' hash[:action_type_attributes] = action_type_attributes if has? 'ord:actionType' hash[:order_header] = order_header.to_h if has? 'ord:orderHeader' hash[:order_detail] = order_detail.map(&:to_h) if has? 'ord:orderDetail' hash[:order_summary] = order_summary.to_h if has? 'ord:orderSummary' hash[:print] = print.map(&:to_h) if has? 'ord:print' hash end