Class: Esse::AsyncIndexing::Adapters::Adapter

Inherits:
Object
  • Object
show all
Defined in:
lib/esse/async_indexing/adapters/adapter.rb

Direct Known Subclasses

Faktory, Sidekiq

Class Method Summary collapse

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

Parameters:

  • payload (Object)

    the object that should be coerced to a Worker

Returns:

Raises:

  • (NotImplemented)


18
19
20
# File 'lib/esse/async_indexing/adapters/adapter.rb', line 18

def self.coerce_to_worker(payload, **options)
  raise NotImplemented
end

.push(_worker) ⇒ Object

This method is abstract.

Child classes should override this method

Push the worker job to the service

Parameters:

Raises:

  • (NotImplemented)


9
10
11
# File 'lib/esse/async_indexing/adapters/adapter.rb', line 9

def self.push(_worker)
  raise NotImplemented
end