class MultiBackgroundJob::Adapters::Adapter

Public Class Methods

coerce_to_worker(payload, **options) click to toggle source

Coerces the raw payload into an instance of Worker @param payload [Object] the object that should be coerced to a Worker @options options [Hash] list of options that will be passed along to the Worker instance @return [MultiBackgroundJob::Worker] and instance of MultiBackgroundJob::Worker @abstract Child classes should override this method

# File lib/multi_background_job/adapters/adapter.rb, line 18
def self.coerce_to_worker(payload, **options)
  raise NotImplemented
end
push(_worker) click to toggle source

Push the worker job to the service @param _worker [MultiBackgroundJob::Worker] An instance of background worker @abstract Child classes should override this method

# File lib/multi_background_job/adapters/adapter.rb, line 9
def self.push(_worker)
  raise NotImplemented
end