Class: Nexpose::Vulnerability
- Inherits:
-
Object
- Object
- Nexpose::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.
79 80 81 |
# File 'lib/nexpose/vuln.rb', line 79 def initialize(id, title, severity) @id, @title, @severity = id, title, severity.to_i end |
Instance Attribute Details
#id ⇒ Object (readonly)
The unique ID string for this vulnerability
71 72 73 |
# File 'lib/nexpose/vuln.rb', line 71 def id @id end |
#severity ⇒ Object (readonly)
How critical the vulnerability is on a scale of 1 to 10.
77 78 79 |
# File 'lib/nexpose/vuln.rb', line 77 def severity @severity end |
#title ⇒ Object (readonly)
The title of this vulnerability
74 75 76 |
# File 'lib/nexpose/vuln.rb', line 74 def title @title end |