Class: Textus::Protocol::Container

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/protocol/container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(store:, layout:, manifest:, schemas:, workflows:, root: nil, gate: nil, ttl_evaluator: nil, store_engine: nil) ⇒ Container

Returns a new instance of Container.



7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/textus/protocol/container.rb', line 7

def initialize(store:, layout:, manifest:, schemas:, workflows:,
               root: nil, gate: nil, ttl_evaluator: nil, store_engine: nil)
  @store = store
  @layout = layout
  @manifest = manifest
  @schemas = schemas
  @workflows = workflows
  @workflow_registry = workflows ? Textus::Workflow::Registry.new(workflows) : nil
  @root = root
  @gate = gate
  @ttl_evaluator = ttl_evaluator
  @store_engine = store_engine
end

Instance Attribute Details

#gateObject

Returns the value of attribute gate.



4
5
6
# File 'lib/textus/protocol/container.rb', line 4

def gate
  @gate
end

#layoutObject (readonly)

Returns the value of attribute layout.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def layout
  @layout
end

#manifestObject (readonly)

Returns the value of attribute manifest.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def manifest
  @manifest
end

#rootObject (readonly)

Returns the value of attribute root.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def root
  @root
end

#schemasObject (readonly)

Returns the value of attribute schemas.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def schemas
  @schemas
end

#storeObject (readonly)

Returns the value of attribute store.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def store
  @store
end

#store_engineObject (readonly)

Returns the value of attribute store_engine.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def store_engine
  @store_engine
end

#ttl_evaluatorObject (readonly)

Returns the value of attribute ttl_evaluator.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def ttl_evaluator
  @ttl_evaluator
end

#workflow_registryObject (readonly)

Returns the value of attribute workflow_registry.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def workflow_registry
  @workflow_registry
end

#workflowsObject (readonly)

Returns the value of attribute workflows.



5
6
7
# File 'lib/textus/protocol/container.rb', line 5

def workflows
  @workflows
end