Class: Payola::Worker::SuckerPunch
- Inherits:
-
BaseWorker
- Object
- BaseWorker
- Payola::Worker::SuckerPunch
- Includes:
- SuckerPunch::Job
- Defined in:
- lib/payola/worker/sucker_punch.rb
Class Method Summary collapse
Methods inherited from BaseWorker
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
11 12 13 |
# File 'lib/payola/worker/sucker_punch.rb', line 11 def self.can_run? defined?(::SuckerPunch::Job) end |