class Pohoda::Parsers::Acu::ItemAccountingUnitType

Public Instance Methods

accounting_unit_identity() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 63
def accounting_unit_identity
  submodel_at(Typ::MyAddress, 'acu:accountingUnitIdentity')
end
data_file() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 67
def data_file
  at 'acu:dataFile'
end
data_file_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 71
def data_file_attributes
  attributes_at 'acu:dataFile'
end
date_from() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 31
def date_from
  at 'acu:dateFrom'
end
date_from_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 35
def date_from_attributes
  attributes_at 'acu:dateFrom'
end
date_to() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 39
def date_to
  at 'acu:dateTo'
end
date_to_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 43
def date_to_attributes
  attributes_at 'acu:dateTo'
end
id() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 7
def id
  at 'acu:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 11
def id_attributes
  attributes_at 'acu:id'
end
key() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 75
def key
  at 'acu:key'
end
key_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 79
def key_attributes
  attributes_at 'acu:key'
end
state_type() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 55
def state_type
  at 'acu:stateType'
end
state_type_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 59
def state_type_attributes
  attributes_at 'acu:stateType'
end
to_h() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 83
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'acu:id'
  hash[:id_attributes] = id_attributes if has? 'acu:id'
  hash[:year] = year if has? 'acu:year'
  hash[:year_attributes] = year_attributes if has? 'acu:year'
  hash[:year_type] = year_type if has? 'acu:yearType'
  hash[:year_type_attributes] = year_type_attributes if has? 'acu:yearType'
  hash[:date_from] = date_from if has? 'acu:dateFrom'
  hash[:date_from_attributes] = date_from_attributes if has? 'acu:dateFrom'
  hash[:date_to] = date_to if has? 'acu:dateTo'
  hash[:date_to_attributes] = date_to_attributes if has? 'acu:dateTo'
  hash[:unit_type] = unit_type if has? 'acu:unitType'
  hash[:unit_type_attributes] = unit_type_attributes if has? 'acu:unitType'
  hash[:state_type] = state_type if has? 'acu:stateType'
  hash[:state_type_attributes] = state_type_attributes if has? 'acu:stateType'
  hash[:accounting_unit_identity] = accounting_unit_identity.to_h if has? 'acu:accountingUnitIdentity'
  hash[:data_file] = data_file if has? 'acu:dataFile'
  hash[:data_file_attributes] = data_file_attributes if has? 'acu:dataFile'
  hash[:key] = key if has? 'acu:key'
  hash[:key_attributes] = key_attributes if has? 'acu:key'

  hash
end
unit_type() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 47
def unit_type
  at 'acu:unitType'
end
unit_type_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 51
def unit_type_attributes
  attributes_at 'acu:unitType'
end
year() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 15
def year
  at 'acu:year'
end
year_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 19
def year_attributes
  attributes_at 'acu:year'
end
year_type() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 23
def year_type
  at 'acu:yearType'
end
year_type_attributes() click to toggle source
# File lib/pohoda/parsers/acu/item_accounting_unit_type.rb, line 27
def year_type_attributes
  attributes_at 'acu:yearType'
end