Sha256: 1cbc1cc6116fc164ee2cfbd8b068a8ecd857a81b7fc6bb8cdab0c96d6e3a3765
Contents?: true
Size: 1.07 KB
Versions: 2
Compression:
Stored size: 1.07 KB
Contents
# CVSS-Suite, a Ruby gem to manage the CVSS vector # # Copyright (c) Siemens AG, 2018 # # Authors: # Oliver Hambörger <oliver.hamboerger@siemens.com> # # This work is licensed under the terms of the MIT license. # See the LICENSE.md file in the top-level directory. module CvssSuite ## # This class represents a invalid CVSS vector. class InvalidCvss < Cvss ## # Creates a new invalid CVSS vector. def initialize; end ## # Since this is an invalid CVSS vector, it always returns false. def valid? false end ## # Since this is an invalid CVSS vector, it always throws an exception. def version check_validity end ## # Since this is an invalid CVSS vector, it always throws an exception. def base_score check_validity end ## # Since this is an invalid CVSS vector, it always throws an exception. def temporal_score check_validity end ## # Since this is an invalid CVSS vector, it always throws an exception. def environmental_score check_validity end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cvss-suite-2.0.1 | lib/cvss_suite/invalid_cvss.rb |
cvss-suite-2.0.0 | lib/cvss_suite/invalid_cvss.rb |