class Pohoda::Parsers::Cen::CentreHeaderType

Public Instance Methods

code() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 19
def code
  at 'cen:code'
end
code_attributes() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 23
def code_attributes
  attributes_at 'cen:code'
end
establishment() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 35
def establishment
  submodel_at(Typ::RefType, 'cen:establishment')
end
ext_id() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'cen:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 7
def id
  at 'cen:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 11
def id_attributes
  attributes_at 'cen:id'
end
mark_record() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 47
def mark_record
  at 'cen:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 51
def mark_record_attributes
  attributes_at 'cen:markRecord'
end
name() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 27
def name
  at 'cen:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 31
def name_attributes
  attributes_at 'cen:name'
end
note() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 39
def note
  at 'cen:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 43
def note_attributes
  attributes_at 'cen:note'
end
to_h() click to toggle source
# File lib/pohoda/parsers/cen/centre_header_type.rb, line 55
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'cen:id'
  hash[:id_attributes] = id_attributes if has? 'cen:id'
  hash[:ext_id] = ext_id.to_h if has? 'cen:extId'
  hash[:code] = code if has? 'cen:code'
  hash[:code_attributes] = code_attributes if has? 'cen:code'
  hash[:name] = name if has? 'cen:name'
  hash[:name_attributes] = name_attributes if has? 'cen:name'
  hash[:establishment] = establishment.to_h if has? 'cen:establishment'
  hash[:note] = note if has? 'cen:note'
  hash[:note_attributes] = note_attributes if has? 'cen:note'
  hash[:mark_record] = mark_record if has? 'cen:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'cen:markRecord'

  hash
end