Class: SuckerPunch::Backgroundable::Job

Inherits:
Object
  • Object
show all
Includes:
CallMethod, Job
Defined in:
lib/sucker_punch/backgroundable/job.rb

Instance Method Summary collapse

Instance Method Details

#perform(receiver, method, args, options) ⇒ Object



36
37
38
39
# File 'lib/sucker_punch/backgroundable/job.rb', line 36

def perform(receiver, method, args, options)
  receiver = load(receiver) if instantiate?(options)
  call(receiver, method, *args)
end