Class: CvssSuite::Cvss40

Inherits:
Cvss40AndLater show all
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

#base

Instance Method Summary collapse

Methods inherited from Cvss40AndLater

#initialize, #overall_score, #score, #valid?

Methods inherited from Cvss

#initialize, #severity

Constructor Details

This class inherits a constructor from CvssSuite::Cvss40AndLater

Instance Method Details

#vectorObject

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

#versionObject

Returns the Version of the CVSS vector.



21
22
23
# File 'lib/cvss_suite/cvss40/cvss40.rb', line 21

def version
  4.0
end