Class: Nexpose::ReportConfigSummary
- Inherits:
-
Object
- Object
- Nexpose::ReportConfigSummary
- Defined in:
- lib/nexpose/report.rb
Overview
Data object for report configuration information. Not meant for use in creating new configurations.
Instance Attribute Summary collapse
-
#config_id ⇒ Object
readonly
The report definition (config) ID.
-
#generated_on ⇒ Object
readonly
The date and time the report was generated, in ISO 8601 format.
-
#scope ⇒ Object
readonly
The visibility (scope) of the report definition.
-
#status ⇒ Object
readonly
The current status of the report.
-
#template_id ⇒ Object
readonly
The ID of the report template.
-
#uri ⇒ Object
readonly
The URL to use to access the report (not set for database exports).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config_id, template_id, status, generated_on, uri, scope) ⇒ ReportConfigSummary
constructor
A new instance of ReportConfigSummary.
Constructor Details
#initialize(config_id, template_id, status, generated_on, uri, scope) ⇒ ReportConfigSummary
Returns a new instance of ReportConfigSummary.
112 113 114 115 116 117 118 119 |
# File 'lib/nexpose/report.rb', line 112 def initialize(config_id, template_id, status, generated_on, uri, scope) @config_id = config_id @template_id = template_id @status = status @generated_on = generated_on @uri = uri @scope = scope end |
Instance Attribute Details
#config_id ⇒ Object (readonly)
The report definition (config) ID.
98 99 100 |
# File 'lib/nexpose/report.rb', line 98 def config_id @config_id end |
#generated_on ⇒ Object (readonly)
The date and time the report was generated, in ISO 8601 format.
105 106 107 |
# File 'lib/nexpose/report.rb', line 105 def generated_on @generated_on end |
#scope ⇒ Object (readonly)
The visibility (scope) of the report definition. One of: (global|silo).
110 111 112 |
# File 'lib/nexpose/report.rb', line 110 def scope @scope end |
#status ⇒ Object (readonly)
The current status of the report. One of: Started|Generated|Failed|Aborted|Unknown
103 104 105 |
# File 'lib/nexpose/report.rb', line 103 def status @status end |
#template_id ⇒ Object (readonly)
The ID of the report template.
100 101 102 |
# File 'lib/nexpose/report.rb', line 100 def template_id @template_id end |
#uri ⇒ Object (readonly)
The URL to use to access the report (not set for database exports).
107 108 109 |
# File 'lib/nexpose/report.rb', line 107 def uri @uri end |
Class Method Details
.parse(xml) ⇒ Object
121 122 123 124 125 126 127 128 |
# File 'lib/nexpose/report.rb', line 121 def self.parse(xml) ReportConfigSummary.new(xml.attributes['cfg-id'], xml.attributes['template-id'], xml.attributes['status'], xml.attributes['generated-on'], xml.attributes['report-URI'], xml.attributes['scope']) end |