class Pohoda::Builders::Ipm::ParameterListItemType

Public Instance Methods

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

  root << build_element('ipm:id', data[:id], data[:id_attributes]) if data.key? :id
  root << build_element('ipm:name', data[:name], data[:name_attributes]) if data.key? :name
  root << build_element('ipm:description', data[:description], data[:description_attributes]) if data.key? :description
  root << build_element('ipm:sequence', data[:sequence], data[:sequence_attributes]) if data.key? :sequence

  root
end