Class: Nexpose::EngineSummary

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EngineSummary.



80
81
82
83
84
85
86
87
# File 'lib/nexpose/engine.rb', line 80

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.



70
71
72
# File 'lib/nexpose/engine.rb', line 70

def address
  @address
end

#idObject (readonly)

A unique ID that identifies this scan engine.



66
67
68
# File 'lib/nexpose/engine.rb', line 66

def id
  @id
end

#nameObject (readonly)

The name of this scan engine.



68
69
70
# File 'lib/nexpose/engine.rb', line 68

def name
  @name
end

#portObject (readonly)

The port there the engine is listening.



72
73
74
# File 'lib/nexpose/engine.rb', line 72

def port
  @port
end

#scopeObject (readonly)

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



78
79
80
# File 'lib/nexpose/engine.rb', line 78

def scope
  @scope
end

#statusObject (readonly)

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



75
76
77
# File 'lib/nexpose/engine.rb', line 75

def status
  @status
end