Class: Nexpose::EngineSummary

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

Overview

Object representing the current details of a scan engine attached to the security console.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, name, address, port, status, scope = 'silo') ⇒ EngineSummary

Returns a new instance of EngineSummary.



69
70
71
72
73
74
75
76
# File 'lib/nexpose/scan_engine.rb', line 69

def initialize(id, name, address, port, status, scope = 'silo')
  @id = id
  @name = name
  @address = address
  @port = port
  @status = status
  @scope = scope
end

Instance Attribute Details

#addressObject (readonly)

The hostname or IP address of the engine.



60
61
62
# File 'lib/nexpose/scan_engine.rb', line 60

def address
  @address
end

#idObject (readonly)

A unique ID that identifies this scan engine.



56
57
58
# File 'lib/nexpose/scan_engine.rb', line 56

def id
  @id
end

#nameObject (readonly)

The name of this scan engine.



58
59
60
# File 'lib/nexpose/scan_engine.rb', line 58

def name
  @name
end

#portObject (readonly)

The port there the engine is listening.



62
63
64
# File 'lib/nexpose/scan_engine.rb', line 62

def port
  @port
end

#scopeObject (readonly)

A parameter that specifies whether the engine has a global or silo-specific scope.



67
68
69
# File 'lib/nexpose/scan_engine.rb', line 67

def scope
  @scope
end

#statusObject (readonly)

The engine status. One of: active|pending-auth|incompatible|not-responding|unknown



64
65
66
# File 'lib/nexpose/scan_engine.rb', line 64

def status
  @status
end