module Soda::Worker::ClassMethods

Public Instance Methods

perform_async(*args) click to toggle source
# File lib/soda/worker.rb, line 51
def perform_async(*args)
  perform_in(0, *args)
end
perform_at(delay, *args)
Alias for: perform_in
perform_in(delay, *args) click to toggle source
# File lib/soda/worker.rb, line 55
def perform_in(delay, *args)
  tap do
    opts = Options.new(self, options)
    opts.perform_in(delay, *args)
  end
end
Also aliased as: perform_at
set(opts = {}) click to toggle source
# File lib/soda/worker.rb, line 43
def set(opts = {})
  Options.new(self, options.merge(opts))
end
soda_options(opts = {}) click to toggle source
# File lib/soda/worker.rb, line 47
def soda_options(opts = {})
  options.merge!(opts)
end

Private Instance Methods

options() click to toggle source
# File lib/soda/worker.rb, line 65
def options
  @options ||= {}
end