Class: Homebrew::Vulns::Scanner::Results Private
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
- #checked ⇒ Integer readonly private
- #findings ⇒ Array<Finding> readonly private
- #outdated_without_sbom ⇒ Array<String> readonly private
- #skipped ⇒ Integer readonly private
Instance Method Summary collapse
- #any_open? ⇒ Boolean private
- #initialize(findings:, checked:, skipped:, outdated_without_sbom: []) ⇒ void constructor private
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.
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
#checked ⇒ Integer (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.
94 95 96 |
# File 'vulns/scanner.rb', line 94 def checked @checked end |
#findings ⇒ Array<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.
91 92 93 |
# File 'vulns/scanner.rb', line 91 def findings @findings end |
#outdated_without_sbom ⇒ Array<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.
97 98 99 |
# File 'vulns/scanner.rb', line 97 def outdated_without_sbom @outdated_without_sbom end |
#skipped ⇒ Integer (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.
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.
111 112 113 |
# File 'vulns/scanner.rb', line 111 def any_open? findings.any? { |f| f.open.any? } end |