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.
987 988 989 990 991 992 993 994 995 |
# File 'lib/nexpose.rb', line 987 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
981 982 983 |
# File 'lib/nexpose.rb', line 981 def connection @connection end |
#error ⇒ Object (readonly)
true if an error condition exists; false otherwise
973 974 975 |
# File 'lib/nexpose.rb', line 973 def error @error end |
#error_msg ⇒ Object (readonly)
Error message string
975 976 977 |
# File 'lib/nexpose.rb', line 975 def error_msg @error_msg end |
#request_xml ⇒ Object (readonly)
The last XML request sent by this object
977 978 979 |
# File 'lib/nexpose.rb', line 977 def request_xml @request_xml end |
#response_xml ⇒ Object (readonly)
The last XML response received by this object
979 980 981 |
# File 'lib/nexpose.rb', line 979 def response_xml @response_xml end |
#scan_summaries ⇒ Object (readonly)
//Array containing (ScanSummary*)
985 986 987 |
# File 'lib/nexpose.rb', line 985 def scan_summaries @scan_summaries end |
#site_id ⇒ Object (readonly)
The Site ID
983 984 985 |
# File 'lib/nexpose.rb', line 983 def site_id @site_id end |