Class: Homebrew::Vulns::Vulnerability::RangeStatus Private

Inherits:
Struct
  • Object
show all
Defined in:
vulns/vulnerability.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

state is :affected (in an interval), :fixed (past the closing boundary of at least one interval), or :not_applicable (below the introduced of every interval; the vulnerability never applied to this version). fixed_in is the explicit upstream fixed event that closes the containing interval (:affected) or the highest such event at-or- below the version (:fixed). Inclusive last_affected boundaries and exclusive limit boundaries never populate fixed_in.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fixed_inObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute fixed_in

Returns:

  • (Object)

    the current value of fixed_in



126
127
128
# File 'vulns/vulnerability.rb', line 126

def fixed_in
  @fixed_in
end

#stateObject

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



126
127
128
# File 'vulns/vulnerability.rb', line 126

def state
  @state
end

Instance Method Details

#affected?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


128
# File 'vulns/vulnerability.rb', line 128

def affected? = state == :affected

#fixed?Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Returns:

  • (Boolean)


131
# File 'vulns/vulnerability.rb', line 131

def fixed? = state == :fixed