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.
62 63 64 |
# File 'lib/nexpose/vuln.rb', line 62 def initialize(id, title, severity) @id, @title, @severity = id, title, severity end |
Instance Attribute Details
#id ⇒ Object (readonly)
The unique ID string for this vulnerability
54 55 56 |
# File 'lib/nexpose/vuln.rb', line 54 def id @id end |
#severity ⇒ Object (readonly)
How critical the vulnerability is on a scale of 1 to 10.
60 61 62 |
# File 'lib/nexpose/vuln.rb', line 60 def severity @severity end |
#title ⇒ Object (readonly)
The title of this vulnerability
57 58 59 |
# File 'lib/nexpose/vuln.rb', line 57 def title @title end |