class Pohoda::Parsers::Act::AccountancyType

Public Instance Methods

accounting_item() click to toggle source
# File lib/pohoda/parsers/act/accountancy_type.rb, line 7
def accounting_item
  array_of_at(Act::AccountingItemType, ['act:accountingItem'])
end
to_h() click to toggle source
# File lib/pohoda/parsers/act/accountancy_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:accounting_item] = accounting_item.map(&:to_h) if has? 'act:accountingItem'

  hash
end