Class: Valkyrie::AdapterContainer
- Inherits:
-
Object
- Object
- Valkyrie::AdapterContainer
- Defined in:
- lib/valkyrie/adapter_container.rb
Instance Attribute Summary collapse
-
#persister ⇒ Object
readonly
Wraps up an individual persister and query service to conform to the adapter interface.
-
#query_service ⇒ Object
readonly
Wraps up an individual persister and query service to conform to the adapter interface.
Instance Method Summary collapse
-
#initialize(persister:, query_service:) ⇒ AdapterContainer
constructor
A new instance of AdapterContainer.
Constructor Details
#initialize(persister:, query_service:) ⇒ AdapterContainer
Returns a new instance of AdapterContainer.
7 8 9 10 |
# File 'lib/valkyrie/adapter_container.rb', line 7 def initialize(persister:, query_service:) @persister = persister @query_service = query_service end |
Instance Attribute Details
#persister ⇒ Object (readonly)
Wraps up an individual persister and query service to conform to the adapter interface. Useful for decorated persisters.
6 7 8 |
# File 'lib/valkyrie/adapter_container.rb', line 6 def persister @persister end |
#query_service ⇒ Object (readonly)
Wraps up an individual persister and query service to conform to the adapter interface. Useful for decorated persisters.
6 7 8 |
# File 'lib/valkyrie/adapter_container.rb', line 6 def query_service @query_service end |