Class: Homebrew::Vulns::Match::Identity Private

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

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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#distro_packages ⇒ 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 distro_packages

Returns:

  • (Object) —

    the current value of distro_packages



138
139
140
# File 'vulns/match.rb', line 138

def distro_packages
  @distro_packages
end

#git_repo ⇒ 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 git_repo

Returns:

  • (Object) —

    the current value of git_repo



138
139
140
# File 'vulns/match.rb', line 138

def git_repo
  @git_repo
end

#git_tag ⇒ 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 git_tag

Returns:

  • (Object) —

    the current value of git_tag



138
139
140
# File 'vulns/match.rb', line 138

def git_tag
  @git_tag
end

#primary_package ⇒ 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 primary_package

Returns:

  • (Object) —

    the current value of primary_package



138
139
140
# File 'vulns/match.rb', line 138

def primary_package
  @primary_package
end

#resource_packages ⇒ 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 resource_packages

Returns:

  • (Object) —

    the current value of resource_packages



138
139
140
# File 'vulns/match.rb', line 138

def resource_packages
  @resource_packages
end

Instance Method Details

#identifiable? ⇒ 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)


143
144
145
# File 'vulns/match.rb', line 143

def identifiable?
  !git_repo.nil? || !primary_package.nil? || resource_packages.any? || distro_packages.any?
end