class Pohoda::Parsers::Acp::ActionPriceStockItemType

Public Instance Methods

action_price_stock() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 31
def action_price_stock
  submodel_at(Acp::ActionPriceStockType, 'acp:actionPriceStock')
end
default_price_stock() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 27
def default_price_stock
  submodel_at(Acp::DefaultPriceStockType, 'acp:defaultPriceStock')
end
stock() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 7
def stock
  at 'acp:stock'
end
stock_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 11
def stock_attributes
  attributes_at 'acp:stock'
end
storage() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 23
def storage
  submodel_at(Typ::RefTypeStorage, 'acp:storage')
end
text() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 15
def text
  at 'acp:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 19
def text_attributes
  attributes_at 'acp:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/acp/action_price_stock_item_type.rb, line 35
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:stock] = stock if has? 'acp:stock'
  hash[:stock_attributes] = stock_attributes if has? 'acp:stock'
  hash[:text] = text if has? 'acp:text'
  hash[:text_attributes] = text_attributes if has? 'acp:text'
  hash[:storage] = storage.to_h if has? 'acp:storage'
  hash[:default_price_stock] = default_price_stock.to_h if has? 'acp:defaultPriceStock'
  hash[:action_price_stock] = action_price_stock.to_h if has? 'acp:actionPriceStock'

  hash
end