Class: Nexpose::SiteScanHistory

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

Overview

Description

Object that represents the scan history of a site.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#connectionObject (readonly)

The NSC Connection associated with this object



1332
1333
1334
# File 'lib/nexpose.rb', line 1332

def connection
  @connection
end

#errorObject (readonly)

true if an error condition exists; false otherwise



1324
1325
1326
# File 'lib/nexpose.rb', line 1324

def error
  @error
end

#error_msgObject (readonly)

Error message string



1326
1327
1328
# File 'lib/nexpose.rb', line 1326

def error_msg
  @error_msg
end

#request_xmlObject (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_xmlObject (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_summariesObject (readonly)

//Array containing (ScanSummary*)



1336
1337
1338
# File 'lib/nexpose.rb', line 1336

def scan_summaries
  @scan_summaries
end

#site_idObject (readonly)

The Site ID



1334
1335
1336
# File 'lib/nexpose.rb', line 1334

def site_id
  @site_id
end