module Pohoda::Parsers::Stk::Groups::MyGroupStockItem

Public Instance Methods

code() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 22
def code
  at 'stk:code'
end
code_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 26
def code_attributes
  attributes_at 'stk:code'
end
count() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 38
def count
  at 'stk:count'
end
count_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 42
def count_attributes
  attributes_at 'stk:count'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 14
def ext_id
  submodel_at(Typ::ExtIdType, 'stk:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 6
def id
  at 'stk:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 10
def id_attributes
  attributes_at 'stk:id'
end
name() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 30
def name
  at 'stk:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 34
def name_attributes
  attributes_at 'stk:name'
end
quantity() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 46
def quantity
  at 'stk:quantity'
end
quantity_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 50
def quantity_attributes
  attributes_at 'stk:quantity'
end
stock_order() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 62
def stock_order
  at 'stk:stockOrder'
end
stock_order_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 66
def stock_order_attributes
  attributes_at 'stk:stockOrder'
end
storage() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 18
def storage
  submodel_at(Typ::RefTypeStorage, 'stk:storage')
end
to_h() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 70
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'stk:id'
  hash[:id_attributes] = id_attributes if has? 'stk:id'
  hash[:ext_id] = ext_id.to_h if has? 'stk:extId'
  hash[:storage] = storage.to_h if has? 'stk:storage'
  hash[:code] = code if has? 'stk:code'
  hash[:code_attributes] = code_attributes if has? 'stk:code'
  hash[:name] = name if has? 'stk:name'
  hash[:name_attributes] = name_attributes if has? 'stk:name'
  hash[:count] = count if has? 'stk:count'
  hash[:count_attributes] = count_attributes if has? 'stk:count'
  hash[:quantity] = quantity if has? 'stk:quantity'
  hash[:quantity_attributes] = quantity_attributes if has? 'stk:quantity'
  hash[:unit] = unit if has? 'stk:unit'
  hash[:unit_attributes] = unit_attributes if has? 'stk:unit'
  hash[:stock_order] = stock_order if has? 'stk:stockOrder'
  hash[:stock_order_attributes] = stock_order_attributes if has? 'stk:stockOrder'

  hash
end
unit() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 54
def unit
  at 'stk:unit'
end
unit_attributes() click to toggle source
# File lib/pohoda/parsers/stk/groups/my_group_stock_item.rb, line 58
def unit_attributes
  attributes_at 'stk:unit'
end