Sha256: 5c70636e75d9addd9e28ac18d1e8109f518878c1437398dc2d9b42f448453fbf
Contents?: true
Size: 841 Bytes
Versions: 1
Compression:
Stored size: 841 Bytes
Contents
# frozen_string_literal: true module MultiBackgroundJob module Adapters class Adapter # Push the worker job to the service # @param _worker [MultiBackgroundJob::Worker] An instance of background worker # @abstract Child classes should override this method def self.push(_worker) raise NotImplemented end # 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 def self.coerce_to_worker(payload, **options) raise NotImplemented end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi-background-job-0.1.0 | lib/multi_background_job/adapters/adapter.rb |