class Pohoda::Builders::LAdb::ListAddressBookType

Public Instance Methods

builder() click to toggle source
Calls superclass method
# File lib/pohoda/builders/l_adb/list_address_book_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? :addressbook
    data[:addressbook].each { |i| root << Adb::AddressbookType.new('lAdb:addressbook', i).builder }
  end

  root
end