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



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

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



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

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



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

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



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

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



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

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)


51
52
53
# File 'vulns/match.rb', line 51

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