Class: SuckerPunch::AsyncProxy
- Inherits:
-
Object
- Object
- SuckerPunch::AsyncProxy
- Defined in:
- lib/sucker_punch/async_syntax.rb
Instance Method Summary collapse
-
#initialize(job) ⇒ AsyncProxy
constructor
A new instance of AsyncProxy.
- #perform(*args) ⇒ Object
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 |