class

Vex::Statement

Inherits JSON::Serializable < Reference < Object

Constructors

new(status : Status, vulnerability : Vulnerability | Nil = nil, products : Array(Product) | Nil = nil, id : String | Nil = nil, version : Int32 | Nil = nil, timestamp : Time | Nil = nil, last_updated : Time | Nil = nil, status_notes : String | Nil = nil, justification : Justification | Nil = nil, impact_statement : String | Nil = nil, action_statement : String | Nil = nil, action_statement_timestamp : Time | Nil = nil, supplier : String | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

==(other : self)

Returns true if this reference is the same as other. Invokes same?.

action_statement
Source
action_statement=(action_statement : String | Nil)
Source
action_statement_timestamp
Source
action_statement_timestamp=(action_statement_timestamp : Time | Nil)
Source
hash(hasher)

See Object#hash(hasher)

id=(id : String | Nil)
Source
impact_statement
Source
impact_statement=(impact_statement : String | Nil)
Source
justification
Source
justification=(justification : Justification | Nil)
Source
last_updated
Source
last_updated=(last_updated : Time | Nil)
Source
products
Source
products=(products : Array(Product) | Nil)
Source
status
Source
status=(status : Status)
Source
status_notes
Source
status_notes=(status_notes : String | Nil)
Source
supplier
Source
supplier=(supplier : String | Nil)
Source
timestamp
Source
timestamp=(timestamp : Time | Nil)
Source
valid?
Source
validate

Returns an array of validation errors. Empty array means the statement is valid per the OpenVEX spec's conditional-field rules.

Source
version
Source
version=(version : Int32 | Nil)
Source
vulnerability
Source
vulnerability=(vulnerability : Vulnerability | Nil)
Source