class Pohoda::Parsers::Ftr::FilterGroupStockType

Public Instance Methods

code() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 15
def code
  at 'ftr:code'
end
code_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 19
def code_attributes
  attributes_at 'ftr:code'
end
id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 7
def id
  at 'ftr:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 11
def id_attributes
  attributes_at 'ftr:id'
end
name() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 23
def name
  at 'ftr:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 27
def name_attributes
  attributes_at 'ftr:name'
end
to_h() click to toggle source
# File lib/pohoda/parsers/ftr/filter_group_stock_type.rb, line 31
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'ftr:id'
  hash[:id_attributes] = id_attributes if has? 'ftr:id'
  hash[:code] = code if has? 'ftr:code'
  hash[:code_attributes] = code_attributes if has? 'ftr:code'
  hash[:name] = name if has? 'ftr:name'
  hash[:name_attributes] = name_attributes if has? 'ftr:name'

  hash
end