class Pohoda::Parsers::Pre::PrevodkaHeaderType

Public Instance Methods

activity() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 83
def activity
  submodel_at(Typ::RefType, 'pre:activity')
end
centre_destination() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 79
def centre_destination
  submodel_at(Typ::RefType, 'pre:centreDestination')
end
centre_source() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 75
def centre_source
  submodel_at(Typ::RefType, 'pre:centreSource')
end
contract() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 87
def contract
  submodel_at(Typ::RefType, 'pre:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 19
def date
  at 'pre:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 23
def date_attributes
  attributes_at 'pre:date'
end
date_of_receipt() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 35
def date_of_receipt
  at 'pre:dateOfReceipt'
end
date_of_receipt_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 39
def date_of_receipt_attributes
  attributes_at 'pre:dateOfReceipt'
end
id() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 7
def id
  at 'pre:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 11
def id_attributes
  attributes_at 'pre:id'
end
int_note() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 99
def int_note
  at 'pre:intNote'
end
int_note_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 103
def int_note_attributes
  attributes_at 'pre:intNote'
end
mark_record() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 107
def mark_record
  at 'pre:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 111
def mark_record_attributes
  attributes_at 'pre:markRecord'
end
note() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 91
def note
  at 'pre:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 95
def note_attributes
  attributes_at 'pre:note'
end
number() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 15
def number
  submodel_at(Typ::NumberType, 'pre:number')
end
parameters() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 115
def parameters
  array_of_at(Typ::ParameterDocType, ['pre:parameters', 'typ:parameter'])
end
partner_identity() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 71
def partner_identity
  submodel_at(Typ::Address, 'pre:partnerIdentity')
end
store() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 59
def store
  submodel_at(Typ::RefType, 'pre:store')
end
sym_par() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 51
def sym_par
  at 'pre:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 55
def sym_par_attributes
  attributes_at 'pre:symPar'
end
text() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 63
def text
  at 'pre:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 67
def text_attributes
  attributes_at 'pre:text'
end
time() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 27
def time
  at 'pre:time'
end
time_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 31
def time_attributes
  attributes_at 'pre:time'
end
time_of_receipt() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 43
def time_of_receipt
  at 'pre:timeOfReceipt'
end
time_of_receipt_attributes() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 47
def time_of_receipt_attributes
  attributes_at 'pre:timeOfReceipt'
end
to_h() click to toggle source
# File lib/pohoda/parsers/pre/prevodka_header_type.rb, line 119
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'pre:id'
  hash[:id_attributes] = id_attributes if has? 'pre:id'
  hash[:number] = number.to_h if has? 'pre:number'
  hash[:date] = date if has? 'pre:date'
  hash[:date_attributes] = date_attributes if has? 'pre:date'
  hash[:time] = time if has? 'pre:time'
  hash[:time_attributes] = time_attributes if has? 'pre:time'
  hash[:date_of_receipt] = date_of_receipt if has? 'pre:dateOfReceipt'
  hash[:date_of_receipt_attributes] = date_of_receipt_attributes if has? 'pre:dateOfReceipt'
  hash[:time_of_receipt] = time_of_receipt if has? 'pre:timeOfReceipt'
  hash[:time_of_receipt_attributes] = time_of_receipt_attributes if has? 'pre:timeOfReceipt'
  hash[:sym_par] = sym_par if has? 'pre:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'pre:symPar'
  hash[:store] = store.to_h if has? 'pre:store'
  hash[:text] = text if has? 'pre:text'
  hash[:text_attributes] = text_attributes if has? 'pre:text'
  hash[:partner_identity] = partner_identity.to_h if has? 'pre:partnerIdentity'
  hash[:centre_source] = centre_source.to_h if has? 'pre:centreSource'
  hash[:centre_destination] = centre_destination.to_h if has? 'pre:centreDestination'
  hash[:activity] = activity.to_h if has? 'pre:activity'
  hash[:contract] = contract.to_h if has? 'pre:contract'
  hash[:note] = note if has? 'pre:note'
  hash[:note_attributes] = note_attributes if has? 'pre:note'
  hash[:int_note] = int_note if has? 'pre:intNote'
  hash[:int_note_attributes] = int_note_attributes if has? 'pre:intNote'
  hash[:mark_record] = mark_record if has? 'pre:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'pre:markRecord'
  hash[:parameters] = parameters.map(&:to_h) if has? 'pre:parameters'

  hash
end