Class: Trailblazer::Activity::Schema
- Inherits:
-
Struct
- Object
- Struct
- Trailblazer::Activity::Schema
- Defined in:
- lib/trailblazer/activity/schema.rb,
lib/trailblazer/activity/schema/compiler.rb,
lib/trailblazer/activity/schema/intermediate.rb,
lib/trailblazer/activity/schema/implementation.rb
Overview
The idea with :config is to have a generic runtime store for feature fields like :wrap_static but also for flags, e.g. ‘each: true` from the Each() macro.
Defined Under Namespace
Modules: Implementation Classes: Intermediate, Nodes
Instance Attribute Summary collapse
-
#circuit ⇒ Object
Returns the value of attribute circuit.
-
#config ⇒ Object
Returns the value of attribute config.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
-
#outputs ⇒ Object
Returns the value of attribute outputs.
Class Method Summary collapse
-
.Nodes(nodes) ⇒ Object
Builder for Nodes datastructure.
Instance Attribute Details
#circuit ⇒ Object
Returns the value of attribute circuit
5 6 7 |
# File 'lib/trailblazer/activity/schema.rb', line 5 def circuit @circuit end |
#config ⇒ Object
Returns the value of attribute config
5 6 7 |
# File 'lib/trailblazer/activity/schema.rb', line 5 def config @config end |
#nodes ⇒ Object
Returns the value of attribute nodes
5 6 7 |
# File 'lib/trailblazer/activity/schema.rb', line 5 def nodes @nodes end |
#outputs ⇒ Object
Returns the value of attribute outputs
5 6 7 |
# File 'lib/trailblazer/activity/schema.rb', line 5 def outputs @outputs end |
Class Method Details
.Nodes(nodes) ⇒ Object
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/trailblazer/activity/schema.rb', line 26 def self.Nodes(nodes) Nodes[ nodes.collect do |attrs| [ attrs[1], # task Nodes::Attributes.new(*attrs).freeze ] end ].freeze end |