Class: Esse::AsyncIndexing::Adapters::Adapter
- Inherits:
-
Object
- Object
- Esse::AsyncIndexing::Adapters::Adapter
- Defined in:
- lib/esse/async_indexing/adapters/adapter.rb
Class Method Summary collapse
-
.coerce_to_worker(payload, **options) ⇒ Esse::AsyncIndexing::Worker
abstract
Coerces the raw payload into an instance of Worker.
-
.push(_worker) ⇒ Object
abstract
Push the worker job to the service.
Class Method Details
.coerce_to_worker(payload, **options) ⇒ Esse::AsyncIndexing::Worker
This method is abstract.
Child classes should override this method
Coerces the raw payload into an instance of Worker
18 19 20 |
# File 'lib/esse/async_indexing/adapters/adapter.rb', line 18 def self.coerce_to_worker(payload, **) raise NotImplemented end |
.push(_worker) ⇒ Object
This method is abstract.
Child classes should override this method
Push the worker job to the service
9 10 11 |
# File 'lib/esse/async_indexing/adapters/adapter.rb', line 9 def self.push(_worker) raise NotImplemented end |