Class: Smith::Workflow::Graph::StateDiagnostics

Inherits:
Object
  • Object
show all
Defined in:
lib/smith/workflow/graph/state_diagnostics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(graph) ⇒ StateDiagnostics

Returns a new instance of StateDiagnostics.



9
10
11
# File 'lib/smith/workflow/graph/state_diagnostics.rb', line 9

def initialize(graph)
  @graph = graph
end

Instance Attribute Details

#graphObject (readonly)

Returns the value of attribute graph.



7
8
9
# File 'lib/smith/workflow/graph/state_diagnostics.rb', line 7

def graph
  @graph
end

Instance Method Details

#to_aObject



13
14
15
16
17
18
# File 'lib/smith/workflow/graph/state_diagnostics.rb', line 13

def to_a
  [
    *initial_state_diagnostics,
    *state_reference_diagnostics
  ]
end