Class: Nexpose::EngineSummary
- Inherits:
-
Object
- Object
- Nexpose::EngineSummary
- Defined in:
- lib/nexpose/engine.rb
Overview
Object representing the current details of a scan engine attached to the security console.
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
The hostname or IP address of the engine.
-
#id ⇒ Object
readonly
A unique ID that identifies this scan engine.
-
#name ⇒ Object
readonly
The name of this scan engine.
-
#port ⇒ Object
readonly
The port there the engine is listening.
-
#scope ⇒ Object
readonly
A parameter that specifies whether the engine has a global or silo-specific scope.
-
#status ⇒ Object
readonly
The engine status.
Instance Method Summary collapse
-
#initialize(id, name, address, port, status, scope = 'silo') ⇒ EngineSummary
constructor
A new instance of EngineSummary.
Constructor Details
#initialize(id, name, address, port, status, scope = 'silo') ⇒ EngineSummary
Returns a new instance of EngineSummary.
79 80 81 82 83 84 85 86 |
# File 'lib/nexpose/engine.rb', line 79 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
#address ⇒ Object (readonly)
The hostname or IP address of the engine.
69 70 71 |
# File 'lib/nexpose/engine.rb', line 69 def address @address end |
#id ⇒ Object (readonly)
A unique ID that identifies this scan engine.
65 66 67 |
# File 'lib/nexpose/engine.rb', line 65 def id @id end |
#name ⇒ Object (readonly)
The name of this scan engine.
67 68 69 |
# File 'lib/nexpose/engine.rb', line 67 def name @name end |
#port ⇒ Object (readonly)
The port there the engine is listening.
71 72 73 |
# File 'lib/nexpose/engine.rb', line 71 def port @port end |
#scope ⇒ Object (readonly)
A parameter that specifies whether the engine has a global or silo-specific scope.
77 78 79 |
# File 'lib/nexpose/engine.rb', line 77 def scope @scope end |
#status ⇒ Object (readonly)
The engine status. One of: active, pending-auth, incompatible, not-responding, unknown
74 75 76 |
# File 'lib/nexpose/engine.rb', line 74 def status @status end |