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_packagesObject

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



42
43
44
# File 'vulns/match.rb', line 42

def distro_packages
  @distro_packages
end

#git_repoObject

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



42
43
44
# File 'vulns/match.rb', line 42

def git_repo
  @git_repo
end

#git_tagObject

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



42
43
44
# File 'vulns/match.rb', line 42

def git_tag
  @git_tag
end

#primary_packageObject

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



42
43
44
# File 'vulns/match.rb', line 42

def primary_package
  @primary_package
end

#resource_packagesObject

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



42
43
44
# File 'vulns/match.rb', line 42

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)


47
48
49
# File 'vulns/match.rb', line 47

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