class Pohoda::Builders::Typ::LabelsType

Public Instance Methods

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

  if data.key? :label
    data[:label].each { |i| root << Typ::LabelType.new('typ:label', i).builder }
  end

  root
end