class Pohoda::Parsers::Typ::ResponsiblePersonType

Public Instance Methods

degree() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 31
def degree
  at 'typ:degree'
end
degree_attributes() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 35
def degree_attributes
  attributes_at 'typ:degree'
end
id() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 7
def id
  at 'typ:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 11
def id_attributes
  attributes_at 'typ:id'
end
name() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 23
def name
  at 'typ:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 27
def name_attributes
  attributes_at 'typ:name'
end
surname() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 15
def surname
  at 'typ:surname'
end
surname_attributes() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 19
def surname_attributes
  attributes_at 'typ:surname'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/responsible_person_type.rb, line 39
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'typ:id'
  hash[:id_attributes] = id_attributes if has? 'typ:id'
  hash[:surname] = surname if has? 'typ:surname'
  hash[:surname_attributes] = surname_attributes if has? 'typ:surname'
  hash[:name] = name if has? 'typ:name'
  hash[:name_attributes] = name_attributes if has? 'typ:name'
  hash[:degree] = degree if has? 'typ:degree'
  hash[:degree_attributes] = degree_attributes if has? 'typ:degree'

  hash
end