class Pohoda::Parsers::Prn::PrinterSettingsType

Public Instance Methods

parameters() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 23
def parameters
  at 'prn:parameters'
end
parameters_attributes() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 27
def parameters_attributes
  attributes_at 'prn:parameters'
end
pdf() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 19
def pdf
  submodel_at(Prn::PDFType, 'prn:pdf')
end
printer() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 11
def printer
  at 'prn:printer'
end
printer_attributes() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 15
def printer_attributes
  attributes_at 'prn:printer'
end
report() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 7
def report
  submodel_at(Prn::ReportType, 'prn:report')
end
to_h() click to toggle source
# File lib/pohoda/parsers/prn/printer_settings_type.rb, line 31
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:report] = report.to_h if has? 'prn:report'
  hash[:printer] = printer if has? 'prn:printer'
  hash[:printer_attributes] = printer_attributes if has? 'prn:printer'
  hash[:pdf] = pdf.to_h if has? 'prn:pdf'
  hash[:parameters] = parameters if has? 'prn:parameters'
  hash[:parameters_attributes] = parameters_attributes if has? 'prn:parameters'

  hash
end