Class: ActiveJob::Inlined::Proxy
- Inherits:
-
Object
- Object
- ActiveJob::Inlined::Proxy
- Defined in:
- lib/active_job/inlined.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(job) ⇒ Proxy
constructor
A new instance of Proxy.
- #perform_later ⇒ Object
Constructor Details
#initialize(job) ⇒ Proxy
Returns a new instance of Proxy.
47 48 49 |
# File 'lib/active_job/inlined.rb', line 47 def initialize(job) @job = job end |
Class Method Details
.chains_on(method) ⇒ Object
56 57 58 |
# File 'lib/active_job/inlined.rb', line 56 def self.chains_on(method) class_eval "def #{method}(...); self.class.new @job.#{method}(...); end", __FILE__, __LINE__ + 1 end |
Instance Method Details
#perform_later ⇒ Object
51 52 53 54 |
# File 'lib/active_job/inlined.rb', line 51 def perform_later(...) @job.perform_now(...) nil end |