class Pohoda::Parsers::Vyr::VyrobaHeaderType

Public Instance Methods

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

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

  hash
end