Class: CvssSuite::Cvss31Temporal
- Inherits:
-
CvssMetric
- Object
- CvssMetric
- CvssSuite::Cvss31Temporal
- Defined in:
- lib/cvss_suite/cvss31/cvss31_temporal.rb
Overview
This class represents a CVSS Temporal metric in version 3.1.
Instance Attribute Summary collapse
-
#exploit_code_maturity ⇒ Object
readonly
Property of this metric.
-
#remediation_level ⇒ Object
readonly
Property of this metric.
-
#report_confidence ⇒ Object
readonly
Property of this metric.
Attributes inherited from CvssMetric
Instance Method Summary collapse
-
#score ⇒ Object
Returns score of this metric.
Methods inherited from CvssMetric
Constructor Details
This class inherits a constructor from CvssSuite::CvssMetric
Instance Attribute Details
#exploit_code_maturity ⇒ Object (readonly)
Property of this metric
15 16 17 |
# File 'lib/cvss_suite/cvss31/cvss31_temporal.rb', line 15 def exploit_code_maturity @exploit_code_maturity end |
#remediation_level ⇒ Object (readonly)
Property of this metric
15 16 17 |
# File 'lib/cvss_suite/cvss31/cvss31_temporal.rb', line 15 def remediation_level @remediation_level end |
#report_confidence ⇒ Object (readonly)
Property of this metric
15 16 17 |
# File 'lib/cvss_suite/cvss31/cvss31_temporal.rb', line 15 def report_confidence @report_confidence end |
Instance Method Details
#score ⇒ Object
Returns score of this metric
19 20 21 22 23 |
# File 'lib/cvss_suite/cvss31/cvss31_temporal.rb', line 19 def score return 1.0 unless valid? @exploit_code_maturity.score * @remediation_level.score * @report_confidence.score end |