class Pohoda::Parsers::Typ::LinkedDocumentType

Public Instance Methods

source_agenda() click to toggle source
# File lib/pohoda/parsers/typ/linked_document_type.rb, line 7
def source_agenda
  at 'typ:sourceAgenda'
end
source_agenda_attributes() click to toggle source
# File lib/pohoda/parsers/typ/linked_document_type.rb, line 11
def source_agenda_attributes
  attributes_at 'typ:sourceAgenda'
end
source_document() click to toggle source
# File lib/pohoda/parsers/typ/linked_document_type.rb, line 15
def source_document
  submodel_at(Typ::SourceDocumentType, 'typ:sourceDocument')
end
source_document_item() click to toggle source
# File lib/pohoda/parsers/typ/linked_document_type.rb, line 19
def source_document_item
  submodel_at(Typ::SourceDocumentItemType, 'typ:sourceDocumentItem')
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/linked_document_type.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:source_agenda] = source_agenda if has? 'typ:sourceAgenda'
  hash[:source_agenda_attributes] = source_agenda_attributes if has? 'typ:sourceAgenda'
  hash[:source_document] = source_document.to_h if has? 'typ:sourceDocument'
  hash[:source_document_item] = source_document_item.to_h if has? 'typ:sourceDocumentItem'

  hash
end