enum

CVSS::Severity

Inherits Enum < Comparable < Value < Object

Qualitative severity rating used across CVSS v3.x and v4.0. CVSS v2.0 ratings (Low/Medium/High) are mapped onto this enum for a consistent API surface.

Constants

None = 0
Low = 1
Medium = 2
High = 3
Critical = 4

Constructors

from_score(score : Float64) : Severity

Maps a numeric base score (0.0..10.0) to a CVSS v3.x / v4.0 severity rating.

Source
from_v2_score(score : Float64) : Severity

CVSS v2.0 only defines Low/Medium/High. None is used for 0.0.

Source

Instance methods

critical?

Returns true if this enum value equals Critical

Source
high?

Returns true if this enum value equals High

Source
low?

Returns true if this enum value equals Low

Source
medium?

Returns true if this enum value equals Medium

Source
none?

Returns true if this enum value equals None

Source
to_s(io : IO) : Nil

Appends a String representation of this enum member to the given io.

See also: to_s.

Source
to_s

Explicit override of Enum#to_s : String. The defaults happen to match the member names, but defining both branches insulates the public label from a future enum rename.

Source