class Pohoda::Builders::Ilt::InventoryListsDetailType

Public Instance Methods

builder() click to toggle source
# File lib/pohoda/builders/ilt/inventory_lists_detail_type.rb, line 7
def builder
  root = Ox::Element.new(name)
  root = add_attributes_and_namespaces(root)

  if data.key? :inventory_lists_item
    data[:inventory_lists_item].each { |i| root << Ilt::InventoryListsItemType.new('ilt:inventoryListsItem', i).builder }
  end

  root
end