class Pohoda::Builders::Prn::PrintType

Public Instance Methods

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

  if data.key? :record
    root << Ftr::RecordPrintType.new('prn:record', data[:record]).builder
  end
  if data.key? :printer_settings
    data[:printer_settings].each { |i| root << Prn::PrinterSettingsType.new('prn:printerSettings', i).builder }
  end

  root
end