Class: Nexpose::XML::VulnCheck
- Inherits:
-
Vulnerability
- Object
- Vulnerability
- Nexpose::XML::VulnCheck
- Defined in:
- lib/nexpose/vuln.rb
Overview
Vulnerability Check information.
Instance Attribute Summary collapse
-
#categories ⇒ Array[String]
readonly
Categories that this check is a member of.
-
#check_id ⇒ Object
readonly
Returns the value of attribute check_id.
-
#check_type ⇒ String
readonly
Check type.
Attributes inherited from Vulnerability
Instance Method Summary collapse
-
#initialize(json) ⇒ VulnCheck
constructor
A new instance of VulnCheck.
Constructor Details
#initialize(json) ⇒ VulnCheck
Returns a new instance of VulnCheck.
130 131 132 133 134 135 136 137 |
# File 'lib/nexpose/vuln.rb', line 130 def initialize(json) @id = json['Vuln ID'] @check_id = json['Vuln Check ID'] @title = json['Vulnerability'] @severity = json['Severity'].to_i @check_type = json['Check Type'] @categories = json['Category'].split(/, */) end |
Instance Attribute Details
#categories ⇒ Array[String] (readonly)
Returns Categories that this check is a member of. Note that this is note the same as the categories from #list_vuln_categories.
126 127 128 |
# File 'lib/nexpose/vuln.rb', line 126 def categories @categories end |
#check_id ⇒ Object (readonly)
Returns the value of attribute check_id.
123 124 125 |
# File 'lib/nexpose/vuln.rb', line 123 def check_id @check_id end |
#check_type ⇒ String (readonly)
Returns Check type. @see #list_vuln_types.
128 129 130 |
# File 'lib/nexpose/vuln.rb', line 128 def check_type @check_type end |