class Pohoda::Parsers::Sto::StoreType

Public Instance Methods

acc_stock_a() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 83
def acc_stock_a
  submodel_at(Sto::AccStockAType, 'sto:accStockA')
end
create_inventory_card() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 71
def create_inventory_card
  at 'sto:createInventoryCard'
end
create_inventory_card_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 75
def create_inventory_card_attributes
  attributes_at 'sto:createInventoryCard'
end
destination_store() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 63
def destination_store
  at 'sto:destinationStore'
end
destination_store_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 67
def destination_store_attributes
  attributes_at 'sto:destinationStore'
end
id() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 7
def id
  at 'sto:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 11
def id_attributes
  attributes_at 'sto:id'
end
mark_record() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 47
def mark_record
  at 'sto:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 51
def mark_record_attributes
  attributes_at 'sto:markRecord'
end
name() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 15
def name
  at 'sto:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 19
def name_attributes
  attributes_at 'sto:name'
end
note() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 39
def note
  at 'sto:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 43
def note_attributes
  attributes_at 'sto:note'
end
plu() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 35
def plu
  submodel_at(Sto::PLUtype, 'sto:PLU')
end
source_store() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 55
def source_store
  at 'sto:sourceStore'
end
source_store_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 59
def source_store_attributes
  attributes_at 'sto:sourceStore'
end
storekeeper() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 31
def storekeeper
  submodel_at(Typ::RefType, 'sto:storekeeper')
end
text() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 23
def text
  at 'sto:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 27
def text_attributes
  attributes_at 'sto:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 87
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'sto:id'
  hash[:id_attributes] = id_attributes if has? 'sto:id'
  hash[:name] = name if has? 'sto:name'
  hash[:name_attributes] = name_attributes if has? 'sto:name'
  hash[:text] = text if has? 'sto:text'
  hash[:text_attributes] = text_attributes if has? 'sto:text'
  hash[:storekeeper] = storekeeper.to_h if has? 'sto:storekeeper'
  hash[:plu] = plu.to_h if has? 'sto:PLU'
  hash[:note] = note if has? 'sto:note'
  hash[:note_attributes] = note_attributes if has? 'sto:note'
  hash[:mark_record] = mark_record if has? 'sto:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'sto:markRecord'
  hash[:source_store] = source_store if has? 'sto:sourceStore'
  hash[:source_store_attributes] = source_store_attributes if has? 'sto:sourceStore'
  hash[:destination_store] = destination_store if has? 'sto:destinationStore'
  hash[:destination_store_attributes] = destination_store_attributes if has? 'sto:destinationStore'
  hash[:create_inventory_card] = create_inventory_card if has? 'sto:createInventoryCard'
  hash[:create_inventory_card_attributes] = create_inventory_card_attributes if has? 'sto:createInventoryCard'
  hash[:unit_pzd] = unit_pzd.to_h if has? 'sto:unitPZD'
  hash[:acc_stock_a] = acc_stock_a.to_h if has? 'sto:accStockA'

  hash
end
unit_pzd() click to toggle source
# File lib/pohoda/parsers/sto/store_type.rb, line 79
def unit_pzd
  submodel_at(Typ::RefType, 'sto:unitPZD')
end