Class: MetzScan::Calibration::ProjectAnalyzerEvidenceRunner::AnalyzerSelection
- Inherits:
-
Object
- Object
- MetzScan::Calibration::ProjectAnalyzerEvidenceRunner::AnalyzerSelection
- Defined in:
- lib/metz_scan/calibration/project_analyzer_evidence_runner/collaborators.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(rule_ids) ⇒ AnalyzerSelection
constructor
A new instance of AnalyzerSelection.
Constructor Details
#initialize(rule_ids) ⇒ AnalyzerSelection
Returns a new instance of AnalyzerSelection.
10 11 12 |
# File 'lib/metz_scan/calibration/project_analyzer_evidence_runner/collaborators.rb', line 10 def initialize(rule_ids) @rule_ids = Array(rule_ids).compact end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 |
# File 'lib/metz_scan/calibration/project_analyzer_evidence_runner/collaborators.rb', line 14 def call return nil if rule_ids.empty? rule_ids.map { |rule_id| analyzer_for(rule_id) } end |