class Pohoda::Parsers::Typ::StockItemType

Public Instance Methods

serial_number() click to toggle source
# File lib/pohoda/parsers/typ/stock_item_type.rb, line 15
def serial_number
  at 'typ:serialNumber'
end
serial_number_attributes() click to toggle source
# File lib/pohoda/parsers/typ/stock_item_type.rb, line 19
def serial_number_attributes
  attributes_at 'typ:serialNumber'
end
stock_item() click to toggle source
# File lib/pohoda/parsers/typ/stock_item_type.rb, line 11
def stock_item
  submodel_at(Typ::StockRefType, 'typ:stockItem')
end
store() click to toggle source
# File lib/pohoda/parsers/typ/stock_item_type.rb, line 7
def store
  submodel_at(Typ::RefType, 'typ:store')
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/stock_item_type.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:store] = store.to_h if has? 'typ:store'
  hash[:stock_item] = stock_item.to_h if has? 'typ:stockItem'
  hash[:serial_number] = serial_number if has? 'typ:serialNumber'
  hash[:serial_number_attributes] = serial_number_attributes if has? 'typ:serialNumber'

  hash
end