class Pohoda::Parsers::Lst::ListEstablishmentType

Public Instance Methods

establishment() click to toggle source
# File lib/pohoda/parsers/lst/list_establishment_type.rb, line 7
def establishment
  array_of_at(Est::EstablishmentType, ['lst:establishment'])
end
to_h() click to toggle source
Calls superclass method
# File lib/pohoda/parsers/lst/list_establishment_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:establishment] = establishment.map(&:to_h) if has? 'lst:establishment'

  hash
  super.merge(hash)
end