Class: CvssSuite::InvalidCvss

Inherits:
Cvss
  • Object
show all
Defined in:
lib/cvss_suite/invalid_cvss.rb

Overview

This class represents a invalid CVSS vector.

Instance Attribute Summary

Attributes inherited from Cvss

#base

Instance Method Summary collapse

Methods inherited from Cvss

#severity, #vector

Constructor Details

#initializeInvalidCvss

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_scoreObject

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_scoreObject

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_scoreObject

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.

Returns:

  • (Boolean)


18
19
20
# File 'lib/cvss_suite/invalid_cvss.rb', line 18

def valid?
  false
end

#versionObject

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