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 boundary that closed the containing interval (:affected) or the highest boundary at-or-below the version (:fixed).

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



113
114
115
# File 'vulns/vulnerability.rb', line 113

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



113
114
115
# File 'vulns/vulnerability.rb', line 113

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)


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

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)


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

def fixed? = state == :fixed