Class: Tasker::Types::GraphEdge
- Inherits:
-
Dry::Struct
- Object
- Dry::Struct
- Tasker::Types::GraphEdge
- Defined in:
- lib/tasker/types/dependency_graph.rb
Overview
Represents a relationship between two nodes in a dependency graph
Instance Attribute Summary collapse
-
#from ⇒ String
readonly
Source node ID.
-
#metadata ⇒ Hash
readonly
Edge metadata.
-
#relationship ⇒ String
readonly
Relationship type.
-
#to ⇒ String
readonly
Target node ID.
Instance Attribute Details
#from ⇒ String (readonly)
Returns Source node ID.
92 |
# File 'lib/tasker/types/dependency_graph.rb', line 92 attribute :from, Types::String |
#metadata ⇒ Hash (readonly)
Returns Edge metadata.
110 |
# File 'lib/tasker/types/dependency_graph.rb', line 110 attribute :metadata, Types::Hash.default({}.freeze) |
#relationship ⇒ String (readonly)
Returns Relationship type.
104 |
# File 'lib/tasker/types/dependency_graph.rb', line 104 attribute :relationship, Types::String.default('prerequisite') |
#to ⇒ String (readonly)
Returns Target node ID.
98 |
# File 'lib/tasker/types/dependency_graph.rb', line 98 attribute :to, Types::String |