Class: Nexpose::SiloProfileSummary
- Inherits:
-
Object
- Object
- Nexpose::SiloProfileSummary
- Defined in:
- lib/nexpose/silo_profile.rb
Instance Attribute Summary collapse
-
#all_global_engines ⇒ Object
readonly
Returns the value of attribute all_global_engines.
-
#all_global_report_templates ⇒ Object
readonly
Returns the value of attribute all_global_report_templates.
-
#all_global_scan_templates ⇒ Object
readonly
Returns the value of attribute all_global_scan_templates.
-
#all_licensed_modules ⇒ Object
readonly
Returns the value of attribute all_licensed_modules.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#global_report_template_count ⇒ Object
readonly
Returns the value of attribute global_report_template_count.
-
#global_scan_engine_count ⇒ Object
readonly
Returns the value of attribute global_scan_engine_count.
-
#global_scan_template_count ⇒ Object
readonly
Returns the value of attribute global_scan_template_count.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#licensed_module_count ⇒ Object
readonly
Returns the value of attribute licensed_module_count.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#restricted_report_section_count ⇒ Object
readonly
Returns the value of attribute restricted_report_section_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(&block) ⇒ SiloProfileSummary
constructor
A new instance of SiloProfileSummary.
Constructor Details
#initialize(&block) ⇒ SiloProfileSummary
Returns a new instance of SiloProfileSummary.
215 216 217 |
# File 'lib/nexpose/silo_profile.rb', line 215 def initialize(&block) instance_eval(&block) if block_given? end |
Instance Attribute Details
#all_global_engines ⇒ Object (readonly)
Returns the value of attribute all_global_engines.
211 212 213 |
# File 'lib/nexpose/silo_profile.rb', line 211 def all_global_engines @all_global_engines end |
#all_global_report_templates ⇒ Object (readonly)
Returns the value of attribute all_global_report_templates.
212 213 214 |
# File 'lib/nexpose/silo_profile.rb', line 212 def all_global_report_templates @all_global_report_templates end |
#all_global_scan_templates ⇒ Object (readonly)
Returns the value of attribute all_global_scan_templates.
213 214 215 |
# File 'lib/nexpose/silo_profile.rb', line 213 def all_global_scan_templates @all_global_scan_templates end |
#all_licensed_modules ⇒ Object (readonly)
Returns the value of attribute all_licensed_modules.
210 211 212 |
# File 'lib/nexpose/silo_profile.rb', line 210 def all_licensed_modules @all_licensed_modules end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
204 205 206 |
# File 'lib/nexpose/silo_profile.rb', line 204 def description @description end |
#global_report_template_count ⇒ Object (readonly)
Returns the value of attribute global_report_template_count.
205 206 207 |
# File 'lib/nexpose/silo_profile.rb', line 205 def global_report_template_count @global_report_template_count end |
#global_scan_engine_count ⇒ Object (readonly)
Returns the value of attribute global_scan_engine_count.
206 207 208 |
# File 'lib/nexpose/silo_profile.rb', line 206 def global_scan_engine_count @global_scan_engine_count end |
#global_scan_template_count ⇒ Object (readonly)
Returns the value of attribute global_scan_template_count.
207 208 209 |
# File 'lib/nexpose/silo_profile.rb', line 207 def global_scan_template_count @global_scan_template_count end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
202 203 204 |
# File 'lib/nexpose/silo_profile.rb', line 202 def id @id end |
#licensed_module_count ⇒ Object (readonly)
Returns the value of attribute licensed_module_count.
208 209 210 |
# File 'lib/nexpose/silo_profile.rb', line 208 def licensed_module_count @licensed_module_count end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
203 204 205 |
# File 'lib/nexpose/silo_profile.rb', line 203 def name @name end |
#restricted_report_section_count ⇒ Object (readonly)
Returns the value of attribute restricted_report_section_count.
209 210 211 |
# File 'lib/nexpose/silo_profile.rb', line 209 def restricted_report_section_count @restricted_report_section_count end |
Class Method Details
.parse(xml) ⇒ Object
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 |
# 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 |