class Pohoda::Builders::Lst::ListCashType

Public Instance Methods

builder() click to toggle source
Calls superclass method
# File lib/pohoda/builders/lst/list_cash_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

  root << build_element('lst:itemCash', data[:item_cash], data[:item_cash_attributes]) if data.key? :item_cash

  root
end