class Pohoda::Parsers::Typ::EstablishmentType

Public Instance Methods

city() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 15
def city
  at 'typ:city'
end
city_attributes() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 19
def city_attributes
  attributes_at 'typ:city'
end
company() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 7
def company
  at 'typ:company'
end
company_attributes() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 11
def company_attributes
  attributes_at 'typ:company'
end
street() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 23
def street
  at 'typ:street'
end
street_attributes() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 27
def street_attributes
  attributes_at 'typ:street'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 39
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:company] = company if has? 'typ:company'
  hash[:company_attributes] = company_attributes if has? 'typ:company'
  hash[:city] = city if has? 'typ:city'
  hash[:city_attributes] = city_attributes if has? 'typ:city'
  hash[:street] = street if has? 'typ:street'
  hash[:street_attributes] = street_attributes if has? 'typ:street'
  hash[:zip] = zip if has? 'typ:zip'
  hash[:zip_attributes] = zip_attributes if has? 'typ:zip'

  hash
end
zip() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 31
def zip
  at 'typ:zip'
end
zip_attributes() click to toggle source
# File lib/pohoda/parsers/typ/establishment_type.rb, line 35
def zip_attributes
  attributes_at 'typ:zip'
end