class Pohoda::Parsers::Act::AccountingItemType

Public Instance Methods

accounting() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 51
def accounting
  at 'act:accounting'
end
accounting_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 55
def accounting_attributes
  attributes_at 'act:accounting'
end
activity() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 83
def activity
  submodel_at(Typ::RefType, 'act:activity')
end
address() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 59
def address
  submodel_at(Typ::Address, 'act:address')
end
centre() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 79
def centre
  submodel_at(Typ::RefType, 'act:centre')
end
contract() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 87
def contract
  submodel_at(Typ::RefType, 'act:contract')
end
date() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 63
def date
  at 'act:date'
end
date_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 67
def date_attributes
  attributes_at 'act:date'
end
date_tax() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 71
def date_tax
  at 'act:dateTax'
end
date_tax_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 75
def date_tax_attributes
  attributes_at 'act:dateTax'
end
foreign_currency() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 47
def foreign_currency
  submodel_at(Typ::TypeCurrencyForeign, 'act:foreignCurrency')
end
home_currency() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 43
def home_currency
  submodel_at(Typ::TypeCurrencyHomeItem, 'act:homeCurrency')
end
id() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 7
def id
  at 'act:id'
end
id_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 11
def id_attributes
  attributes_at 'act:id'
end
note() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 91
def note
  at 'act:note'
end
note_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 95
def note_attributes
  attributes_at 'act:note'
end
number() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 23
def number
  submodel_at(Typ::NumberType, 'act:number')
end
parameters() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 99
def parameters
  array_of_at(Typ::ParameterDocType, ['act:parameters', 'typ:parameter'])
end
source() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 15
def source
  at 'act:source'
end
source_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 19
def source_attributes
  attributes_at 'act:source'
end
sym_par() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 27
def sym_par
  at 'act:symPar'
end
sym_par_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 31
def sym_par_attributes
  attributes_at 'act:symPar'
end
text() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 35
def text
  at 'act:text'
end
text_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 39
def text_attributes
  attributes_at 'act:text'
end
to_h() click to toggle source
# File lib/pohoda/parsers/act/accounting_item_type.rb, line 103
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:id] = id if has? 'act:id'
  hash[:id_attributes] = id_attributes if has? 'act:id'
  hash[:source] = source if has? 'act:source'
  hash[:source_attributes] = source_attributes if has? 'act:source'
  hash[:number] = number.to_h if has? 'act:number'
  hash[:sym_par] = sym_par if has? 'act:symPar'
  hash[:sym_par_attributes] = sym_par_attributes if has? 'act:symPar'
  hash[:text] = text if has? 'act:text'
  hash[:text_attributes] = text_attributes if has? 'act:text'
  hash[:home_currency] = home_currency.to_h if has? 'act:homeCurrency'
  hash[:foreign_currency] = foreign_currency.to_h if has? 'act:foreignCurrency'
  hash[:accounting] = accounting if has? 'act:accounting'
  hash[:accounting_attributes] = accounting_attributes if has? 'act:accounting'
  hash[:address] = address.to_h if has? 'act:address'
  hash[:date] = date if has? 'act:date'
  hash[:date_attributes] = date_attributes if has? 'act:date'
  hash[:date_tax] = date_tax if has? 'act:dateTax'
  hash[:date_tax_attributes] = date_tax_attributes if has? 'act:dateTax'
  hash[:centre] = centre.to_h if has? 'act:centre'
  hash[:activity] = activity.to_h if has? 'act:activity'
  hash[:contract] = contract.to_h if has? 'act:contract'
  hash[:note] = note if has? 'act:note'
  hash[:note_attributes] = note_attributes if has? 'act:note'
  hash[:parameters] = parameters.map(&:to_h) if has? 'act:parameters'

  hash
end