Class: Tasker::Types::DependencyGraph
- Inherits:
-
BaseConfig
- Object
- Dry::Struct
- BaseConfig
- Tasker::Types::DependencyGraph
- Defined in:
- lib/tasker/types/dependency_graph.rb
Overview
Complete dependency graph structure
Instance Attribute Summary collapse
-
#edges ⇒ Array<GraphEdge>
readonly
Graph edges.
-
#metadata ⇒ GraphMetadata
readonly
Graph metadata.
-
#nodes ⇒ Array<GraphNode>
readonly
Graph nodes.
Instance Method Summary collapse
-
#initialize ⇒ DependencyGraph
constructor
A new instance of DependencyGraph.
Constructor Details
#initialize ⇒ DependencyGraph
Returns a new instance of DependencyGraph.
217 218 219 220 221 222 |
# File 'lib/tasker/types/dependency_graph.rb', line 217 def initialize(*) super # Explicitly freeze arrays for immutability nodes.freeze edges.freeze end |
Instance Attribute Details
#edges ⇒ Array<GraphEdge> (readonly)
Returns Graph edges.
209 |
# File 'lib/tasker/types/dependency_graph.rb', line 209 attribute :edges, Types::Array.of(GraphEdge) |
#metadata ⇒ GraphMetadata (readonly)
Returns Graph metadata.
215 |
# File 'lib/tasker/types/dependency_graph.rb', line 215 attribute :metadata, GraphMetadata |