class Pohoda::Parsers::Sto::AccStockAType

Public Instance Methods

animals() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 47
def animals
  at 'sto:animals'
end
animals_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 51
def animals_attributes
  attributes_at 'sto:animals'
end
goods() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 15
def goods
  at 'sto:goods'
end
goods_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 19
def goods_attributes
  attributes_at 'sto:goods'
end
material() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 7
def material
  at 'sto:material'
end
material_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 11
def material_attributes
  attributes_at 'sto:material'
end
material_of_own_production() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 55
def material_of_own_production
  at 'sto:materialOfOwnProduction'
end
material_of_own_production_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 59
def material_of_own_production_attributes
  attributes_at 'sto:materialOfOwnProduction'
end
products() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 39
def products
  at 'sto:products'
end
products_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 43
def products_attributes
  attributes_at 'sto:products'
end
semiproducts() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 31
def semiproducts
  at 'sto:semiproducts'
end
semiproducts_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 35
def semiproducts_attributes
  attributes_at 'sto:semiproducts'
end
to_h() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 63
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:material] = material if has? 'sto:material'
  hash[:material_attributes] = material_attributes if has? 'sto:material'
  hash[:goods] = goods if has? 'sto:goods'
  hash[:goods_attributes] = goods_attributes if has? 'sto:goods'
  hash[:work_in_progress] = work_in_progress if has? 'sto:workInProgress'
  hash[:work_in_progress_attributes] = work_in_progress_attributes if has? 'sto:workInProgress'
  hash[:semiproducts] = semiproducts if has? 'sto:semiproducts'
  hash[:semiproducts_attributes] = semiproducts_attributes if has? 'sto:semiproducts'
  hash[:products] = products if has? 'sto:products'
  hash[:products_attributes] = products_attributes if has? 'sto:products'
  hash[:animals] = animals if has? 'sto:animals'
  hash[:animals_attributes] = animals_attributes if has? 'sto:animals'
  hash[:material_of_own_production] = material_of_own_production if has? 'sto:materialOfOwnProduction'
  hash[:material_of_own_production_attributes] = material_of_own_production_attributes if has? 'sto:materialOfOwnProduction'

  hash
end
work_in_progress() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 23
def work_in_progress
  at 'sto:workInProgress'
end
work_in_progress_attributes() click to toggle source
# File lib/pohoda/parsers/sto/acc_stock_a_type.rb, line 27
def work_in_progress_attributes
  attributes_at 'sto:workInProgress'
end