class Nexpose::SiloProfileSummary

Attributes

all_global_engines[R]
all_global_report_templates[R]
all_global_scan_templates[R]
all_licensed_modules[R]
description[R]
global_report_template_count[R]
global_scan_engine_count[R]
global_scan_template_count[R]
id[R]
licensed_module_count[R]
name[R]
restricted_report_section_count[R]

Public Class Methods

new(&block) click to toggle source
# File lib/nexpose/silo_profile.rb, line 215
def initialize(&block)
  instance_eval(&block) if block_given?
end
parse(xml) click to toggle source
# File lib/nexpose/silo_profile.rb, line 219
def self.parse(xml)
  new do
    @id                              = xml.attributes['id']
    @name                            = xml.attributes['name']
    @description                     = xml.attributes['description']
    @global_report_template_count    = xml.attributes['global-report-template-count']
    @global_scan_engine_count        = xml.attributes['global-scan-engine-count']
    @global_scan_template_count      = xml.attributes['global-scan-template-count']
    @licensed_module_count           = xml.attributes['licensed-module-count']
    @restricted_report_section_count = xml.attributes['restricted-report-section-count']
    @all_licensed_modules            = xml.attributes['all-licensed-modules']
    @all_global_engines              = xml.attributes['all-global-engines']
    @all_global_report_templates     = xml.attributes['all-global-report-templates']
    @all_global_scan_templates       = xml.attributes['all-global-scan-templates']
  end
end