class Pohoda::Parsers::Idp::StocksType

Public Instance Methods

stock_item() click to toggle source
# File lib/pohoda/parsers/idp/stocks_type.rb, line 7
def stock_item
  array_of_at(Idp::StockItemType, ['idp:stockItem'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/idp/stocks_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:stock_item] = stock_item.map(&:to_h) if has? 'idp:stockItem'

  hash
end