Class: Valkyrie::AdapterContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/valkyrie/adapter_container.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#persisterObject (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_serviceObject (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