Class: Nexpose::SiloProfileSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/nexpose/silo_profile.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ SiloProfileSummary

Returns a new instance of SiloProfileSummary.



218
219
220
# File 'lib/nexpose/silo_profile.rb', line 218

def initialize(&block)
  instance_eval &block if block_given?
end

Instance Attribute Details

#all_global_enginesObject (readonly)

Returns the value of attribute all_global_engines.



213
214
215
# File 'lib/nexpose/silo_profile.rb', line 213

def all_global_engines
  @all_global_engines
end

#all_global_report_templatesObject (readonly)

Returns the value of attribute all_global_report_templates.



214
215
216
# File 'lib/nexpose/silo_profile.rb', line 214

def all_global_report_templates
  @all_global_report_templates
end

#all_global_scan_templatesObject (readonly)

Returns the value of attribute all_global_scan_templates.



215
216
217
# File 'lib/nexpose/silo_profile.rb', line 215

def all_global_scan_templates
  @all_global_scan_templates
end

#all_licensed_modulesObject (readonly)

Returns the value of attribute all_licensed_modules.



212
213
214
# File 'lib/nexpose/silo_profile.rb', line 212

def all_licensed_modules
  @all_licensed_modules
end

#descriptionObject (readonly)

Returns the value of attribute description.



206
207
208
# File 'lib/nexpose/silo_profile.rb', line 206

def description
  @description
end

#global_report_template_countObject (readonly)

Returns the value of attribute global_report_template_count.



207
208
209
# File 'lib/nexpose/silo_profile.rb', line 207

def global_report_template_count
  @global_report_template_count
end

#global_scan_engine_countObject (readonly)

Returns the value of attribute global_scan_engine_count.



208
209
210
# File 'lib/nexpose/silo_profile.rb', line 208

def global_scan_engine_count
  @global_scan_engine_count
end

#global_scan_template_countObject (readonly)

Returns the value of attribute global_scan_template_count.



209
210
211
# File 'lib/nexpose/silo_profile.rb', line 209

def global_scan_template_count
  @global_scan_template_count
end

#idObject (readonly)

Returns the value of attribute id.



204
205
206
# File 'lib/nexpose/silo_profile.rb', line 204

def id
  @id
end

#licensed_module_countObject (readonly)

Returns the value of attribute licensed_module_count.



210
211
212
# File 'lib/nexpose/silo_profile.rb', line 210

def licensed_module_count
  @licensed_module_count
end

#nameObject (readonly)

Returns the value of attribute name.



205
206
207
# File 'lib/nexpose/silo_profile.rb', line 205

def name
  @name
end

#restricted_report_section_countObject (readonly)

Returns the value of attribute restricted_report_section_count.



211
212
213
# File 'lib/nexpose/silo_profile.rb', line 211

def restricted_report_section_count
  @restricted_report_section_count
end

Class Method Details

.parse(xml) ⇒ Object



222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# File 'lib/nexpose/silo_profile.rb', line 222

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