Class: CvssSuite::Cvss40
- Inherits:
-
Cvss40AndLater
- Object
- Cvss
- Cvss40AndLater
- CvssSuite::Cvss40
- Defined in:
- lib/cvss_suite/cvss40/cvss40.rb
Overview
This class represents a CVSS vector in version 4.0.
Instance Attribute Summary
Attributes inherited from Cvss40AndLater
#environmental, #environmental_security, #supplemental, #threat
Attributes inherited from Cvss
Instance Method Summary collapse
-
#vector ⇒ Object
Returns the vector itself.
-
#version ⇒ Object
Returns the Version of the CVSS vector.
Methods inherited from Cvss40AndLater
#initialize, #overall_score, #score, #valid?
Methods inherited from Cvss
Constructor Details
This class inherits a constructor from CvssSuite::Cvss40AndLater
Instance Method Details
#vector ⇒ Object
Returns the vector itself.
27 28 29 |
# File 'lib/cvss_suite/cvss40/cvss40.rb', line 27 def vector "#{CvssSuite::CVSS_VECTOR_BEGINNINGS.find { |beginning| beginning[:version] == version }[:string]}#{@vector}" end |
#version ⇒ Object
Returns the Version of the CVSS vector.
21 22 23 |
# File 'lib/cvss_suite/cvss40/cvss40.rb', line 21 def version 4.0 end |