class Pohoda::Builders::Lst::ListAccountingSingleEntryType

Public Instance Methods

builder() click to toggle source
Calls superclass method
# File lib/pohoda/builders/lst/list_accounting_single_entry_type.rb, line 7
def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  super.nodes.each do |n|
    root << n
  end

  if data.key? :item_accounting
    data[:item_accounting].each { |i| root << Lst::ItemAccountingTypeSingleEntry.new('lst:itemAccounting', i).builder }
  end

  root
end