class Pohoda::Parsers::Acp::ActionPriceType

Public Instance Methods

action_price_header() click to toggle source
# File lib/pohoda/parsers/acp/action_price_type.rb, line 7
def action_price_header
  submodel_at(Acp::ActionPriceHeaderType, 'acp:actionPriceHeader')
end
action_price_item() click to toggle source
# File lib/pohoda/parsers/acp/action_price_type.rb, line 11
def action_price_item
  array_of_at(Acp::ActionPriceStockItemType, ['acp:actionPriceItem', 'acp:actionPriceStockItem'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/acp/action_price_type.rb, line 15
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:action_price_header] = action_price_header.to_h if has? 'acp:actionPriceHeader'
  hash[:action_price_item] = action_price_item.map(&:to_h) if has? 'acp:actionPriceItem'

  hash
end