Class: Tasker::Types::GraphNode
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Tasker::Types::GraphNode
- Defined in:
- lib/tasker/types/dependency_graph.rb
Overview
Represents a single node in a dependency graph
A node can represent either a step template (for template graphs) or a workflow step instance (for runtime graphs).
Instance Attribute Summary collapse
-
#id ⇒ String
readonly
Node identifier.
-
#metadata ⇒ Hash
readonly
Node metadata.
-
#name ⇒ String
readonly
Node name.
-
#readiness_status ⇒ Hash?
readonly
Step readiness information.
-
#state ⇒ String?
readonly
Current state of the step.
-
#type ⇒ String
readonly
Node type.
Instance Attribute Details
#id ⇒ String (readonly)
Returns Node identifier.
36 |
# File 'lib/tasker/types/dependency_graph.rb', line 36 attribute :id, Types::String |
#metadata ⇒ Hash (readonly)
Returns Node metadata.
66 |
# File 'lib/tasker/types/dependency_graph.rb', line 66 attribute :metadata, Types::Hash.default({}.freeze) |
#name ⇒ String (readonly)
Returns Node name.
42 |
# File 'lib/tasker/types/dependency_graph.rb', line 42 attribute :name, Types::String |
#readiness_status ⇒ Hash? (readonly)
Returns Step readiness information.
60 |
# File 'lib/tasker/types/dependency_graph.rb', line 60 attribute? :readiness_status, Types::Hash.optional |
#state ⇒ String? (readonly)
Returns Current state of the step.
54 |
# File 'lib/tasker/types/dependency_graph.rb', line 54 attribute? :state, Types::String.optional |
#type ⇒ String (readonly)
Returns Node type.
48 |
# File 'lib/tasker/types/dependency_graph.rb', line 48 attribute :type, Types::String |