Class: Nexpose::XML::Vulnerability

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

Overview

Basic vulnerability information. Only includes ID, title, and severity.

Direct Known Subclasses

VulnCheck, VulnerabilitySummary

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, title, severity) ⇒ Vulnerability

Returns a new instance of Vulnerability.



113
114
115
116
117
# File 'lib/nexpose/vuln.rb', line 113

def initialize(id, title, severity)
  @id       = id
  @title    = title
  @severity = severity.to_i
end

Instance Attribute Details

#idObject (readonly)

The unique ID string for this vulnerability



107
108
109
# File 'lib/nexpose/vuln.rb', line 107

def id
  @id
end

#severityObject (readonly)

How critical the vulnerability is on a scale of 1 to 10.



111
112
113
# File 'lib/nexpose/vuln.rb', line 111

def severity
  @severity
end

#titleObject (readonly)

The title of this vulnerability



109
110
111
# File 'lib/nexpose/vuln.rb', line 109

def title
  @title
end