Class: Nexpose::SiteScanHistory
- Inherits:
-
Object
- Object
- Nexpose::SiteScanHistory
- Defined in:
- lib/nexpose.rb
Overview
Description
Object that represents the scan history of a site.
Instance Attribute Summary collapse
-
#connection ⇒ Object
readonly
The NSC Connection associated with this object.
-
#error ⇒ Object
readonly
true if an error condition exists; false otherwise.
-
#error_msg ⇒ Object
readonly
Error message string.
-
#request_xml ⇒ Object
readonly
The last XML request sent by this object.
-
#response_xml ⇒ Object
readonly
The last XML response received by this object.
-
#scan_summaries ⇒ Object
readonly
//Array containing (ScanSummary*).
-
#site_id ⇒ Object
readonly
The Site ID.
Instance Method Summary collapse
-
#initialize(connection, id) ⇒ SiteScanHistory
constructor
A new instance of SiteScanHistory.
Constructor Details
#initialize(connection, id) ⇒ SiteScanHistory
Returns a new instance of SiteScanHistory.
1338 1339 1340 1341 1342 1343 1344 1345 1346 |
# File 'lib/nexpose.rb', line 1338 def initialize(connection, id) @site_id = id @error = false @connection = connection @scan_summaries = Array.new() r = @connection.execute('<SiteScanHistoryRequest' + ' session-id="' + @connection.session_id + '" site-id="' + @site_id + '"/>') status = r.success end |
Instance Attribute Details
#connection ⇒ Object (readonly)
The NSC Connection associated with this object
1332 1333 1334 |
# File 'lib/nexpose.rb', line 1332 def connection @connection end |
#error ⇒ Object (readonly)
true if an error condition exists; false otherwise
1324 1325 1326 |
# File 'lib/nexpose.rb', line 1324 def error @error end |
#error_msg ⇒ Object (readonly)
Error message string
1326 1327 1328 |
# File 'lib/nexpose.rb', line 1326 def error_msg @error_msg end |
#request_xml ⇒ Object (readonly)
The last XML request sent by this object
1328 1329 1330 |
# File 'lib/nexpose.rb', line 1328 def request_xml @request_xml end |
#response_xml ⇒ Object (readonly)
The last XML response received by this object
1330 1331 1332 |
# File 'lib/nexpose.rb', line 1330 def response_xml @response_xml end |
#scan_summaries ⇒ Object (readonly)
//Array containing (ScanSummary*)
1336 1337 1338 |
# File 'lib/nexpose.rb', line 1336 def scan_summaries @scan_summaries end |
#site_id ⇒ Object (readonly)
The Site ID
1334 1335 1336 |
# File 'lib/nexpose.rb', line 1334 def site_id @site_id end |