Class: CvssSuite::InvalidCvss
- Defined in:
- lib/cvss_suite/invalid_cvss.rb
Overview
This class represents a invalid CVSS vector.
Instance Attribute Summary
Attributes inherited from Cvss
Instance Method Summary collapse
-
#base_score ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
-
#environmental_score ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
-
#initialize ⇒ InvalidCvss
constructor
rubocop:disable Lint/MissingSuper.
-
#temporal_score ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
-
#valid? ⇒ Boolean
Since this is an invalid CVSS vector, it always returns false.
-
#version ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
Methods inherited from Cvss
Constructor Details
#initialize ⇒ InvalidCvss
rubocop:disable Lint/MissingSuper
Creates a new invalid CVSS vector.
13 |
# File 'lib/cvss_suite/invalid_cvss.rb', line 13 def initialize; end |
Instance Method Details
#base_score ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
30 31 32 |
# File 'lib/cvss_suite/invalid_cvss.rb', line 30 def base_score check_validity end |
#environmental_score ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
42 43 44 |
# File 'lib/cvss_suite/invalid_cvss.rb', line 42 def environmental_score check_validity end |
#temporal_score ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
36 37 38 |
# File 'lib/cvss_suite/invalid_cvss.rb', line 36 def temporal_score check_validity end |
#valid? ⇒ Boolean
Since this is an invalid CVSS vector, it always returns false.
18 19 20 |
# File 'lib/cvss_suite/invalid_cvss.rb', line 18 def valid? false end |
#version ⇒ Object
Since this is an invalid CVSS vector, it always throws an exception.
24 25 26 |
# File 'lib/cvss_suite/invalid_cvss.rb', line 24 def version check_validity end |