class Pohoda::Parsers::Typ::SourceDocumentType

Public Instance Methods

ext_id() click to toggle source
# File lib/pohoda/parsers/typ/source_document_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'typ:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/typ/source_document_type.rb, line 7
def id
  at 'typ:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/typ/source_document_type.rb, line 11
def id_attributes
  attributes_at 'typ:id'
end
number() click to toggle source
# File lib/pohoda/parsers/typ/source_document_type.rb, line 19
def number
  at 'typ:number'
end
number_attributes() click to toggle source
# File lib/pohoda/parsers/typ/source_document_type.rb, line 23
def number_attributes
  attributes_at 'typ:number'
end
to_h() click to toggle source
# File lib/pohoda/parsers/typ/source_document_type.rb, line 27
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'typ:id'
  hash[:id_attributes] = id_attributes if has? 'typ:id'
  hash[:ext_id] = ext_id.to_h if has? 'typ:extId'
  hash[:number] = number if has? 'typ:number'
  hash[:number_attributes] = number_attributes if has? 'typ:number'

  hash
end