Class: Payola::Worker::SuckerPunch

Inherits:
BaseWorker show all
Includes:
SuckerPunch::Job
Defined in:
lib/payola/worker/sucker_punch.rb

Class Method Summary collapse

Methods inherited from BaseWorker

#perform

Class Method Details

.call(klass, *args) ⇒ Object



15
16
17
# File 'lib/payola/worker/sucker_punch.rb', line 15

def self.call(klass, *args)
  new.async.perform(klass.to_s, *args)
end

.can_run?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/payola/worker/sucker_punch.rb', line 11

def self.can_run?
  defined?(::SuckerPunch::Job)
end