class Pohoda::Parsers::Stk::InstrastatType

Public Instance Methods

coefficient() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 39
def coefficient
  at 'stk:coefficient'
end
coefficient_attributes() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 43
def coefficient_attributes
  attributes_at 'stk:coefficient'
end
country() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 47
def country
  at 'stk:country'
end
country_attributes() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 51
def country_attributes
  attributes_at 'stk:country'
end
description() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 15
def description
  at 'stk:description'
end
description_attributes() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 19
def description_attributes
  attributes_at 'stk:description'
end
goods_code() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 7
def goods_code
  at 'stk:goodsCode'
end
goods_code_attributes() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 11
def goods_code_attributes
  attributes_at 'stk:goodsCode'
end
statistic() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 23
def statistic
  at 'stk:statistic'
end
statistic_attributes() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 27
def statistic_attributes
  attributes_at 'stk:statistic'
end
to_h() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 55
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:goods_code] = goods_code if has? 'stk:goodsCode'
  hash[:goods_code_attributes] = goods_code_attributes if has? 'stk:goodsCode'
  hash[:description] = description if has? 'stk:description'
  hash[:description_attributes] = description_attributes if has? 'stk:description'
  hash[:statistic] = statistic if has? 'stk:statistic'
  hash[:statistic_attributes] = statistic_attributes if has? 'stk:statistic'
  hash[:unit] = unit if has? 'stk:unit'
  hash[:unit_attributes] = unit_attributes if has? 'stk:unit'
  hash[:coefficient] = coefficient if has? 'stk:coefficient'
  hash[:coefficient_attributes] = coefficient_attributes if has? 'stk:coefficient'
  hash[:country] = country if has? 'stk:country'
  hash[:country_attributes] = country_attributes if has? 'stk:country'

  hash
end
unit() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 31
def unit
  at 'stk:unit'
end
unit_attributes() click to toggle source
# File lib/pohoda/parsers/stk/instrastat_type.rb, line 35
def unit_attributes
  attributes_at 'stk:unit'
end