class CvssSuite::InvalidCvss

This class represents a invalid CVSS vector.

Public Class Methods

new() click to toggle source

rubocop:disable Lint/MissingSuper

Creates a new invalid CVSS vector.

# File lib/cvss_suite/invalid_cvss.rb, line 18
def initialize; end

Public Instance Methods

base_score() click to toggle source

Since this is an invalid CVSS vector, it always throws an exception.

# File lib/cvss_suite/invalid_cvss.rb, line 35
def base_score
  check_validity
end
environmental_score() click to toggle source

Since this is an invalid CVSS vector, it always throws an exception.

# File lib/cvss_suite/invalid_cvss.rb, line 47
def environmental_score
  check_validity
end
temporal_score() click to toggle source

Since this is an invalid CVSS vector, it always throws an exception.

# File lib/cvss_suite/invalid_cvss.rb, line 41
def temporal_score
  check_validity
end
valid?() click to toggle source

Since this is an invalid CVSS vector, it always returns false.

# File lib/cvss_suite/invalid_cvss.rb, line 23
def valid?
  false
end
version() click to toggle source

Since this is an invalid CVSS vector, it always throws an exception.

# File lib/cvss_suite/invalid_cvss.rb, line 29
def version
  check_validity
end