Class: Textus::Store::Container
- Inherits:
-
Object
- Object
- Textus::Store::Container
- Defined in:
- lib/textus/store/container.rb
Defined Under Namespace
Classes: Coordination, Infrastructure
Instance Attribute Summary collapse
-
#coord ⇒ Object
readonly
Returns the value of attribute coord.
-
#infra ⇒ Object
readonly
Returns the value of attribute infra.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(infra, coord) ⇒ Container
constructor
A new instance of Container.
- #root ⇒ Object
- #wire_gate!(gate, compositor) ⇒ Object
Constructor Details
#initialize(infra, coord) ⇒ Container
Returns a new instance of Container.
13 14 15 16 |
# File 'lib/textus/store/container.rb', line 13 def initialize(infra, coord) @infra = infra @coord = coord end |
Instance Attribute Details
#coord ⇒ Object (readonly)
Returns the value of attribute coord.
18 19 20 |
# File 'lib/textus/store/container.rb', line 18 def coord @coord end |
#infra ⇒ Object (readonly)
Returns the value of attribute infra.
18 19 20 |
# File 'lib/textus/store/container.rb', line 18 def infra @infra end |
Class Method Details
.attribute_names ⇒ Object
9 10 11 |
# File 'lib/textus/store/container.rb', line 9 def self.attribute_names @attribute_names ||= [:root] + Infrastructure.members + Coordination.members end |
Instance Method Details
#root ⇒ Object
20 21 22 |
# File 'lib/textus/store/container.rb', line 20 def root @infra.geometry.root end |
#wire_gate!(gate, compositor) ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/textus/store/container.rb', line 32 def wire_gate!(gate, compositor) @coord = Coordination.new( manifest: @coord.manifest, workflows: @coord.workflows, gate:, compositor:, ) self end |