Class: Smith::Workflow::Graph::NestedReadinessDiagnostics

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/workflow/graph/nested_readiness_diagnostics.rb

Instance Method Summary collapse

Instance Method Details

#child_reportsObject



18
19
20
# File 'lib/smith/workflow/graph/nested_readiness_diagnostics.rb', line 18

def child_reports
  report_entries.map { |entry| entry.fetch(:report) }
end

#to_aObject



14
15
16
# File 'lib/smith/workflow/graph/nested_readiness_diagnostics.rb', line 14

def to_a
  cycle_diagnostics + report_entries.flat_map { |entry| diagnostics_for(entry) }
end