Class: Valkyrie::Indexing::NullIndexingAdapter
- Inherits:
-
Object
- Object
- Valkyrie::Indexing::NullIndexingAdapter
- Defined in:
- lib/valkyrie/indexing/null_indexing_adapter.rb
Overview
A Valkyrie indexer that does nothing for all index requests. This is useful for applications using alternate/legacy (e.g. ActiveFedora) indexing strategies that don’t want the overhead of running separate index requests.
rubocop:disable Lint/UnusedMethodArgument RuboCop wants us to accept all
arguments, but we actually want to raise ArgumentError when the caller
isn't using the correct signature.
Instance Method Summary collapse
- #delete(resource:) ⇒ Object
- #save(resource:) ⇒ Object
- #save_all(resources:) ⇒ Object
- #wipe! ⇒ Object
Instance Method Details
#delete(resource:) ⇒ Object
21 22 23 |
# File 'lib/valkyrie/indexing/null_indexing_adapter.rb', line 21 def delete(resource:) :noop end |
#save(resource:) ⇒ Object
13 14 15 |
# File 'lib/valkyrie/indexing/null_indexing_adapter.rb', line 13 def save(resource:) :noop end |
#save_all(resources:) ⇒ Object
17 18 19 |
# File 'lib/valkyrie/indexing/null_indexing_adapter.rb', line 17 def save_all(resources:) :noop end |
#wipe! ⇒ Object
25 26 27 |
# File 'lib/valkyrie/indexing/null_indexing_adapter.rb', line 25 def wipe! :noop end |