Module: Olyx::Guardrails::PolicyComponents::ScanResult
- Defined in:
- lib/olyx/guardrails/policy/scan_result.rb
Overview
Presents policy matches as a scan decision.
Class Method Summary collapse
Class Method Details
.call(findings) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/olyx/guardrails/policy/scan_result.rb', line 10 def call(findings) violated = findings.any? { violated: violated, blocked: violated && findings.any? { |finding| finding[:rule].block? }, findings: FindingPresenter.call(findings) } end |