class Pohoda::Parsers::Act::AccountingType2

Public Instance Methods

credit() click to toggle source
# File lib/pohoda/parsers/act/accounting_type2.rb, line 7
def credit
  at 'act:credit'
end
credit_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_type2.rb, line 11
def credit_attributes
  attributes_at 'act:credit'
end
debit() click to toggle source
# File lib/pohoda/parsers/act/accounting_type2.rb, line 15
def debit
  at 'act:debit'
end
debit_attributes() click to toggle source
# File lib/pohoda/parsers/act/accounting_type2.rb, line 19
def debit_attributes
  attributes_at 'act:debit'
end
to_h() click to toggle source
# File lib/pohoda/parsers/act/accounting_type2.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:credit] = credit if has? 'act:credit'
  hash[:credit_attributes] = credit_attributes if has? 'act:credit'
  hash[:debit] = debit if has? 'act:debit'
  hash[:debit_attributes] = debit_attributes if has? 'act:debit'

  hash
end