Module: Sidekiqable::AsyncableMethods

Defined in:
lib/sidekiqable/asyncable_methods.rb

Instance Method Summary collapse

Instance Method Details

#perform_asyncObject



13
14
15
# File 'lib/sidekiqable/asyncable_methods.rb', line 13

def perform_async
  Sidekiqable::AsyncProxy.new(self, :perform_async)
end

#perform_at(timestamp) ⇒ Object



21
22
23
# File 'lib/sidekiqable/asyncable_methods.rb', line 21

def perform_at(timestamp)
  Sidekiqable::AsyncProxy.new(self, :perform_at, timestamp)
end

#perform_in(interval) ⇒ Object



17
18
19
# File 'lib/sidekiqable/asyncable_methods.rb', line 17

def perform_in(interval)
  Sidekiqable::AsyncProxy.new(self, :perform_in, interval)
end

#sidekiqable_options(options = nil) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/sidekiqable/asyncable_methods.rb', line 5

def sidekiqable_options(options = nil)
  if options
    @sidekiqable_options = options
  else
    @sidekiqable_options ||= {}
  end
end