class Pohoda::Parsers::Lst::ItemStorageType

Public Instance Methods

sub_storages() click to toggle source
# File lib/pohoda/parsers/lst/item_storage_type.rb, line 7
def sub_storages
  array_of_at(Lst::ItemStorageType, ['lst:subStorages', 'lst:itemStorage'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/lst/item_storage_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:sub_storages] = sub_storages.map(&:to_h) if has? 'lst:subStorages'

  hash
end