Class: Homebrew::Vulns::Vulnerability::RangeStatus Private
- 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
-
#fixed_in ⇒ Object
private
Returns the value of attribute fixed_in.
-
#state ⇒ Object
private
Returns the value of attribute state.
Instance Method Summary collapse
- #affected? ⇒ Boolean private
- #fixed? ⇒ Boolean private
Instance Attribute Details
#fixed_in ⇒ Object
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
113 114 115 |
# File 'vulns/vulnerability.rb', line 113 def fixed_in @fixed_in end |
#state ⇒ Object
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
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.
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.
118 |
# File 'vulns/vulnerability.rb', line 118 def fixed? = state == :fixed |