module SideJob::Worker::ClassMethods

Class methods added to Workers

Public Instance Methods

register(config={}) click to toggle source

All workers need to register themselves @param config [Hash] The base configuration used by any jobs of this class

# File lib/sidejob/worker.rb, line 40
def register(config={})
  SideJob::Worker.registry[self.name] = config
end