Class: Nexpose::XML::Vulnerability
- Inherits:
-
Object
- Object
- Nexpose::XML::Vulnerability
- Defined in:
- lib/nexpose/vuln.rb
Overview
Basic vulnerability information. Only includes ID, title, and severity.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
The unique ID string for this vulnerability.
-
#severity ⇒ Object
readonly
How critical the vulnerability is on a scale of 1 to 10.
-
#title ⇒ Object
readonly
The title of this vulnerability.
Instance Method Summary collapse
-
#initialize(id, title, severity) ⇒ Vulnerability
constructor
A new instance of Vulnerability.
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
#id ⇒ Object (readonly)
The unique ID string for this vulnerability
107 108 109 |
# File 'lib/nexpose/vuln.rb', line 107 def id @id end |
#severity ⇒ Object (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 |
#title ⇒ Object (readonly)
The title of this vulnerability
109 110 111 |
# File 'lib/nexpose/vuln.rb', line 109 def title @title end |