CVSS::V2::Vector
Inherits CVSS::Vector < Comparable < Reference < Object
CVSS v2.0 vector. Format has no CVSS:x.y/ prefix:
"AV:N/AC:L/Au:N/C:P/I:P/A:P"
Constants
The six required base metrics — parse fails if any is missing.
Canonical metric ordering used by to_s. v2.0 has no CVSS:x.y/
prefix, so the first emitted metric appears with no leading separator.
Constructors
Class methods
Instance methods
Returns true if this reference is the same as other. Invokes same?.
See Object#hash(hasher)
Returns the stored short-code for a metric. Optional metrics that have
not been set return "ND" (the v2 NotDefined code). Raises
CVSS::Error if name is not a recognised v2 metric key.
Returns a Hash(String, String) of metric short-codes, in canonical
order. Optional metrics are only included when set.
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>