Class: Rollbar::Delay::DelayedJob
- Inherits:
-
Object
- Object
- Rollbar::Delay::DelayedJob
- Defined in:
- lib/rollbar/delay/delayed_job.rb
Overview
This class provides the DelayedJob async handler. Users can use DelayedJob in order to send the reports to the Rollbar API
Class Attribute Summary collapse
-
.queue ⇒ Object
Returns the value of attribute queue.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.queue ⇒ Object
Returns the value of attribute queue.
7 8 9 |
# File 'lib/rollbar/delay/delayed_job.rb', line 7 def queue @queue end |
Class Method Details
.call(payload) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rollbar/delay/delayed_job.rb', line 9 def call(payload) if queue new.delay(:queue => queue).call(payload) else new.delay.call(payload) end end |
Instance Method Details
#call(payload) ⇒ Object
18 19 20 |
# File 'lib/rollbar/delay/delayed_job.rb', line 18 def call(payload) Rollbar.process_from_async_handler(payload) end |