class Pohoda::Parsers::Nms::NumericalSeriesHeaderType

Public Instance Methods

agenda() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 51
def agenda
  at 'nms:agenda'
end
agenda_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 55
def agenda_attributes
  attributes_at 'nms:agenda'
end
cash_account() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 67
def cash_account
  submodel_at(Typ::RefType, 'nms:cashAccount')
end
cashbox() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 71
def cashbox
  submodel_at(Typ::RefType, 'nms:cashbox')
end
ext_id() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 15
def ext_id
  submodel_at(Typ::ExtIdType, 'nms:extId')
end
id() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 7
def id
  at 'nms:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 11
def id_attributes
  attributes_at 'nms:id'
end
mark_record() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 107
def mark_record
  at 'nms:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 111
def mark_record_attributes
  attributes_at 'nms:markRecord'
end
name() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 43
def name
  at 'nms:name'
end
name_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 47
def name_attributes
  attributes_at 'nms:name'
end
note() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 99
def note
  at 'nms:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 103
def note_attributes
  attributes_at 'nms:note'
end
number() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 27
def number
  at 'nms:number'
end
number_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 31
def number_attributes
  attributes_at 'nms:number'
end
parameters() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 115
def parameters
  array_of_at(Typ::ParameterDocType, ['nms:parameters', 'typ:parameter'])
end
period() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 75
def period
  at 'nms:period'
end
period_account_unit() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 83
def period_account_unit
  submodel_at(Nms::PeriodAccountUnitType, 'nms:periodAccountUnit')
end
period_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 79
def period_attributes
  attributes_at 'nms:period'
end
prefix() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 19
def prefix
  at 'nms:prefix'
end
prefix_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 23
def prefix_attributes
  attributes_at 'nms:prefix'
end
to_h() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 119
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'nms:id'
  hash[:id_attributes] = id_attributes if has? 'nms:id'
  hash[:ext_id] = ext_id.to_h if has? 'nms:extId'
  hash[:prefix] = prefix if has? 'nms:prefix'
  hash[:prefix_attributes] = prefix_attributes if has? 'nms:prefix'
  hash[:number] = number if has? 'nms:number'
  hash[:number_attributes] = number_attributes if has? 'nms:number'
  hash[:top_number] = top_number if has? 'nms:topNumber'
  hash[:top_number_attributes] = top_number_attributes if has? 'nms:topNumber'
  hash[:name] = name if has? 'nms:name'
  hash[:name_attributes] = name_attributes if has? 'nms:name'
  hash[:agenda] = agenda if has? 'nms:agenda'
  hash[:agenda_attributes] = agenda_attributes if has? 'nms:agenda'
  hash[:type_of_document] = type_of_document if has? 'nms:typeOfDocument'
  hash[:type_of_document_attributes] = type_of_document_attributes if has? 'nms:typeOfDocument'
  hash[:cash_account] = cash_account.to_h if has? 'nms:cashAccount'
  hash[:cashbox] = cashbox.to_h if has? 'nms:cashbox'
  hash[:period] = period if has? 'nms:period'
  hash[:period_attributes] = period_attributes if has? 'nms:period'
  hash[:period_account_unit] = period_account_unit.to_h if has? 'nms:periodAccountUnit'
  hash[:unit_pzd] = unit_pzd.to_h if has? 'nms:unitPZD'
  hash[:year] = year if has? 'nms:year'
  hash[:year_attributes] = year_attributes if has? 'nms:year'
  hash[:note] = note if has? 'nms:note'
  hash[:note_attributes] = note_attributes if has? 'nms:note'
  hash[:mark_record] = mark_record if has? 'nms:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'nms:markRecord'
  hash[:parameters] = parameters.map(&:to_h) if has? 'nms:parameters'

  hash
end
top_number() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 35
def top_number
  at 'nms:topNumber'
end
top_number_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 39
def top_number_attributes
  attributes_at 'nms:topNumber'
end
type_of_document() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 59
def type_of_document
  at 'nms:typeOfDocument'
end
type_of_document_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 63
def type_of_document_attributes
  attributes_at 'nms:typeOfDocument'
end
unit_pzd() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 87
def unit_pzd
  submodel_at(Typ::RefType, 'nms:unitPZD')
end
year() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 91
def year
  at 'nms:year'
end
year_attributes() click to toggle source
# File lib/pohoda/parsers/nms/numerical_series_header_type.rb, line 95
def year_attributes
  attributes_at 'nms:year'
end