Class: SuckerPunch::AsyncProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/sucker_punch/async_syntax.rb

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ AsyncProxy

Returns a new instance of AsyncProxy.


9
10
11
# File 'lib/sucker_punch/async_syntax.rb', line 9

def initialize(job)
  @job = job
end

Instance Method Details

#perform(*args) ⇒ Object


13
14
15
# File 'lib/sucker_punch/async_syntax.rb', line 13

def perform(*args)
  @job.class.perform_async(*args)
end