class CVESchema::CVE::Impact::CVSSv2::TM
Constants
- E
- RC
- RL
Attributes
e[R]
Exploitability
@return [:U, :POC, :F, :H, :ND]
rc[R]
Report Confidence.
@return [:UC, :UR, :C, :ND]
rl[R]
Remediation Level.
@return [:OF, :TF, :W, :U, :ND]
score[R]
The CVSSv2
Temporal Metrics Group score assuming all elements are present.
@return [String, nil]
Public Class Methods
from_json(json)
click to toggle source
Maps the parsed JSON to a Symbol Hash for {#initialize}.
@param [Hash{String => Object}] json
The parsed JSON.
@return [Hash{Symbol => Object}]
The mapped Symbol Hash.
# File lib/cve_schema/cve/impact/cvss_v2.rb, line 151 def self.from_json(json) { e: E[json['E']], rl: RL[json['RL']], rc: RC[json['RC']], score: json['SCORE'] } end
load(json)
click to toggle source
Loads the TM
object from the parsed JSON.
@param [Hash{String => Object}] json
The parsed JSON.
@return [self]
The loaded TM object.
# File lib/cve_schema/cve/impact/cvss_v2.rb, line 170 def self.load(json) new(**from_json(json)) end
new(e: nil, rl: nil, rc: nil, score: nil)
click to toggle source
# File lib/cve_schema/cve/impact/cvss_v2.rb, line 135 def initialize(e: nil, rl: nil, rc: nil, score: nil) @e = e @rl = rl @rc = rc @score = score end