class Pohoda::Parsers::Int::IntDocType

Public Instance Methods

int_doc_detail() click to toggle source
# File lib/pohoda/parsers/int/int_doc_type.rb, line 11
def int_doc_detail
  array_of_at(Int::IntDocItemType, ['int:intDocDetail', 'int:intDocItem'])
end
int_doc_header() click to toggle source
# File lib/pohoda/parsers/int/int_doc_type.rb, line 7
def int_doc_header
  submodel_at(Int::IntDocHeaderType, 'int:intDocHeader')
end
int_doc_summary() click to toggle source
# File lib/pohoda/parsers/int/int_doc_type.rb, line 15
def int_doc_summary
  submodel_at(Int::IntDocSummaryType, 'int:intDocSummary')
end
print() click to toggle source
to_h() click to toggle source
# File lib/pohoda/parsers/int/int_doc_type.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:int_doc_header] = int_doc_header.to_h if has? 'int:intDocHeader'
  hash[:int_doc_detail] = int_doc_detail.map(&:to_h) if has? 'int:intDocDetail'
  hash[:int_doc_summary] = int_doc_summary.to_h if has? 'int:intDocSummary'
  hash[:print] = print.map(&:to_h) if has? 'int:print'

  hash
end