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.



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

#connectionObject (readonly)

The NSC Connection associated with this object



981
982
983
# File 'lib/nexpose.rb', line 981

def connection
  @connection
end

#errorObject (readonly)

true if an error condition exists; false otherwise



973
974
975
# File 'lib/nexpose.rb', line 973

def error
  @error
end

#error_msgObject (readonly)

Error message string



975
976
977
# File 'lib/nexpose.rb', line 975

def error_msg
  @error_msg
end

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

//Array containing (ScanSummary*)



985
986
987
# File 'lib/nexpose.rb', line 985

def scan_summaries
  @scan_summaries
end

#site_idObject (readonly)

The Site ID



983
984
985
# File 'lib/nexpose.rb', line 983

def site_id
  @site_id
end