class Pohoda::Parsers::Ftr::FilterAdbsType

Public Instance Methods

city() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 35
def city
  at 'ftr:city'
end
city_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 39
def city_attributes
  attributes_at 'ftr:city'
end
company() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 19
def company
  at 'ftr:company'
end
company_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 23
def company_attributes
  attributes_at 'ftr:company'
end
dic() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 67
def dic
  at 'ftr:dic'
end
dic_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 71
def dic_attributes
  attributes_at 'ftr:dic'
end
ext_id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'ftr:extId')
end
ico() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 59
def ico
  at 'ftr:ico'
end
ico_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 63
def ico_attributes
  attributes_at 'ftr:ico'
end
id() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 7
def id
  at 'ftr:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 11
def id_attributes
  attributes_at 'ftr:id'
end
last_changes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 79
def last_changes
  at 'ftr:lastChanges'
end
last_changes_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 83
def last_changes_attributes
  attributes_at 'ftr:lastChanges'
end
name() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 27
def name
  at 'ftr:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 31
def name_attributes
  attributes_at 'ftr:name'
end
number() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 75
def number
  submodel_at(Typ::NumberADType, 'ftr:number')
end
street() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 43
def street
  at 'ftr:street'
end
street_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 47
def street_attributes
  attributes_at 'ftr:street'
end
to_h() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 87
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'ftr:id'
  hash[:id_attributes] = id_attributes if has? 'ftr:id'
  hash[:ext_id] = ext_id.to_h if has? 'ftr:extId'
  hash[:company] = company if has? 'ftr:company'
  hash[:company_attributes] = company_attributes if has? 'ftr:company'
  hash[:name] = name if has? 'ftr:name'
  hash[:name_attributes] = name_attributes if has? 'ftr:name'
  hash[:city] = city if has? 'ftr:city'
  hash[:city_attributes] = city_attributes if has? 'ftr:city'
  hash[:street] = street if has? 'ftr:street'
  hash[:street_attributes] = street_attributes if has? 'ftr:street'
  hash[:zip] = zip if has? 'ftr:zip'
  hash[:zip_attributes] = zip_attributes if has? 'ftr:zip'
  hash[:ico] = ico if has? 'ftr:ico'
  hash[:ico_attributes] = ico_attributes if has? 'ftr:ico'
  hash[:dic] = dic if has? 'ftr:dic'
  hash[:dic_attributes] = dic_attributes if has? 'ftr:dic'
  hash[:number] = number.to_h if has? 'ftr:number'
  hash[:last_changes] = last_changes if has? 'ftr:lastChanges'
  hash[:last_changes_attributes] = last_changes_attributes if has? 'ftr:lastChanges'

  hash
end
zip() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 51
def zip
  at 'ftr:zip'
end
zip_attributes() click to toggle source
# File lib/pohoda/parsers/ftr/filter_adbs_type.rb, line 55
def zip_attributes
  attributes_at 'ftr:zip'
end