Module: Auxilium::Concerns::SidekiqCallbacks::ClassMethods

Defined in:
lib/auxilium/concerns/sidekiq_callbacks.rb

Instance Method Summary collapse

Instance Method Details

#around_enqueue(*filters, &blk) ⇒ Object



52
53
54
# File 'lib/auxilium/concerns/sidekiq_callbacks.rb', line 52

def around_enqueue(*filters, &blk)
  set_callback(:enqueue, :around, *filters, &blk)
end

#around_perform(*filters, &blk) ⇒ Object



44
45
46
# File 'lib/auxilium/concerns/sidekiq_callbacks.rb', line 44

def around_perform(*filters, &blk)
  set_callback(:perform, :around, *filters, &blk)
end

#before_enqueue(*filters, &blk) ⇒ Object



48
49
50
# File 'lib/auxilium/concerns/sidekiq_callbacks.rb', line 48

def before_enqueue(*filters, &blk)
  set_callback(:enqueue, :before, *filters, &blk)
end

#before_perform(*filters, &blk) ⇒ Object



56
57
58
# File 'lib/auxilium/concerns/sidekiq_callbacks.rb', line 56

def before_perform(*filters, &blk)
  set_callback(:perform, :before, *filters, &blk)
end