Class: Textus::Container
- Inherits:
-
Data
- Object
- Data
- Textus::Container
- Defined in:
- lib/textus/container.rb,
lib/textus/container.rb
Overview
Single capability record handed to every use case. Replaces the ReadCaps/WriteCaps/HookCaps trio from 0.26.x. Built once per Store.
Instance Attribute Summary collapse
-
#audit_log ⇒ Object
readonly
Returns the value of attribute audit_log.
-
#authorizer ⇒ Object
readonly
Returns the value of attribute authorizer.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#file_store ⇒ Object
readonly
Returns the value of attribute file_store.
-
#manifest ⇒ Object
readonly
Returns the value of attribute manifest.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#rpc ⇒ Object
readonly
Returns the value of attribute rpc.
-
#schemas ⇒ Object
readonly
Returns the value of attribute schemas.
Class Method Summary collapse
Instance Attribute Details
#audit_log ⇒ Object (readonly)
Returns the value of attribute audit_log
4 5 6 |
# File 'lib/textus/container.rb', line 4 def audit_log @audit_log end |
#authorizer ⇒ Object (readonly)
Returns the value of attribute authorizer
4 5 6 |
# File 'lib/textus/container.rb', line 4 def @authorizer end |
#events ⇒ Object (readonly)
Returns the value of attribute events
4 5 6 |
# File 'lib/textus/container.rb', line 4 def events @events end |
#file_store ⇒ Object (readonly)
Returns the value of attribute file_store
4 5 6 |
# File 'lib/textus/container.rb', line 4 def file_store @file_store end |
#manifest ⇒ Object (readonly)
Returns the value of attribute manifest
4 5 6 |
# File 'lib/textus/container.rb', line 4 def manifest @manifest end |
#root ⇒ Object (readonly)
Returns the value of attribute root
4 5 6 |
# File 'lib/textus/container.rb', line 4 def root @root end |
#rpc ⇒ Object (readonly)
Returns the value of attribute rpc
4 5 6 |
# File 'lib/textus/container.rb', line 4 def rpc @rpc end |
#schemas ⇒ Object (readonly)
Returns the value of attribute schemas
4 5 6 |
# File 'lib/textus/container.rb', line 4 def schemas @schemas end |
Class Method Details
.from_store(store) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/textus/container.rb', line 10 def self.from_store(store) new( manifest: store.manifest, file_store: store.file_store, schemas: store.schemas, root: store.root, audit_log: store.audit_log, events: store.events, rpc: store.rpc, authorizer: Textus::Domain::Authorizer.new(manifest: store.manifest), ) end |