class Pohoda::Builders::Ctg::ActionTypeType5

Public Instance Methods

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

  if data.key? :add
    root << Ftr::RequestCategoryActionType.new('ctg:add', data[:add]).builder
  end
  if data.key? :update
    root << Ftr::RequestCategoryActionType.new('ctg:update', data[:update]).builder
  end

  root
end