class Pohoda::Builders::Lst::ListRequestAgendasType

Public Instance Methods

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

  if data.key? :agendas
    element = Ox::Element.new('lst:agendas')
    data[:agendas].each { |i| element << Lst::AgendaType.new('lst:agenda', i).builder }
    root << element
  end

  root
end