class Pohoda::Parsers::LCen::ListCentreType2

Public Instance Methods

centre() click to toggle source
# File lib/pohoda/parsers/l_cen/list_centre_type2.rb, line 7
def centre
  array_of_at(Cen::CentreType, ['lCen:centre'])
end
to_h() click to toggle source
Calls superclass method
# File lib/pohoda/parsers/l_cen/list_centre_type2.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:centre] = centre.map(&:to_h) if has? 'lCen:centre'

  hash
  super.merge(hash)
end