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



63
64
65
# File 'vulns/match.rb', line 63

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



63
64
65
# File 'vulns/match.rb', line 63

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



63
64
65
# File 'vulns/match.rb', line 63

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



63
64
65
# File 'vulns/match.rb', line 63

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



63
64
65
# File 'vulns/match.rb', line 63

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)


68
69
70
# File 'vulns/match.rb', line 68

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