struct

CWE::Related

Inherits JSON::Serializable < Struct < Value < Object

A directed edge in the CWE hierarchy.

nature is the relationship label as defined by the catalog ("ChildOf", "ParentOf", "PeerOf", "CanPrecede", "CanFollow", "CanAlsoBe", "StartsWith", "Requires"). The string is preserved verbatim so callers can match it against future natures without a library upgrade.

Constructors

new(nature : String, cwe_id : Int32, view_id : Int32, ordinal : Nil | String = nil, chain_id : Nil | String = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

chain_id
Source
cwe_id
Source
nature
Source
ordinal
Source
primary?
Source
view_id
Source