class Pohoda::Parsers::Ilt::InventoryListsHeaderType

Public Instance Methods

activity() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 43
def activity
  submodel_at(Typ::RefType, 'ilt:activity')
end
centre() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 39
def centre
  submodel_at(Typ::RefType, 'ilt:centre')
end
contract() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 47
def contract
  submodel_at(Typ::RefType, 'ilt:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 19
def date
  at 'ilt:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 23
def date_attributes
  attributes_at 'ilt:date'
end
id() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 7
def id
  at 'ilt:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 11
def id_attributes
  attributes_at 'ilt:id'
end
mark_record() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 59
def mark_record
  at 'ilt:markRecord'
end
mark_record_attributes() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 63
def mark_record_attributes
  attributes_at 'ilt:markRecord'
end
note() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 51
def note
  at 'ilt:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 55
def note_attributes
  attributes_at 'ilt:note'
end
number() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 15
def number
  submodel_at(Typ::NumberType, 'ilt:number')
end
store() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 35
def store
  submodel_at(Typ::RefType, 'ilt:store')
end
text() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 27
def text
  at 'ilt:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 31
def text_attributes
  attributes_at 'ilt:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/ilt/inventory_lists_header_type.rb, line 67
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'ilt:id'
  hash[:id_attributes] = id_attributes if has? 'ilt:id'
  hash[:number] = number.to_h if has? 'ilt:number'
  hash[:date] = date if has? 'ilt:date'
  hash[:date_attributes] = date_attributes if has? 'ilt:date'
  hash[:text] = text if has? 'ilt:text'
  hash[:text_attributes] = text_attributes if has? 'ilt:text'
  hash[:store] = store.to_h if has? 'ilt:store'
  hash[:centre] = centre.to_h if has? 'ilt:centre'
  hash[:activity] = activity.to_h if has? 'ilt:activity'
  hash[:contract] = contract.to_h if has? 'ilt:contract'
  hash[:note] = note if has? 'ilt:note'
  hash[:note_attributes] = note_attributes if has? 'ilt:note'
  hash[:mark_record] = mark_record if has? 'ilt:markRecord'
  hash[:mark_record_attributes] = mark_record_attributes if has? 'ilt:markRecord'

  hash
end