Class: Homebrew::Vulns::Scanner::Results Private

Inherits:
Object
  • Object
show all
Defined in:
vulns/scanner.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

Constructor Details

#initialize(findings:, checked:, skipped:, outdated_without_sbom: []) ⇒ void

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.

Parameters:



103
104
105
106
107
108
# File 'vulns/scanner.rb', line 103

def initialize(findings:, checked:, skipped:, outdated_without_sbom: [])
  @findings = findings
  @checked = checked
  @skipped = skipped
  @outdated_without_sbom = outdated_without_sbom
end

Instance Attribute Details

#checkedInteger (readonly)

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:



94
95
96
# File 'vulns/scanner.rb', line 94

def checked
  @checked
end

#findingsArray<Finding> (readonly)

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:



91
92
93
# File 'vulns/scanner.rb', line 91

def findings
  @findings
end

#outdated_without_sbomArray<String> (readonly)

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:



97
98
99
# File 'vulns/scanner.rb', line 97

def outdated_without_sbom
  @outdated_without_sbom
end

#skippedInteger (readonly)

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:



94
95
96
# File 'vulns/scanner.rb', line 94

def skipped
  @skipped
end

Instance Method Details

#any_open?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)


111
112
113
# File 'vulns/scanner.rb', line 111

def any_open?
  findings.any? { |f| f.open.any? }
end