class Pohoda::Parsers::Typ::LabelsType

Public Instance Methods

label() click to toggle source
# File lib/pohoda/parsers/typ/labels_type.rb, line 7
def label
  array_of_at(Typ::LabelType, ['typ:label'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/labels_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:label] = label.map(&:to_h) if has? 'typ:label'

  hash
end