Class: RockQueue::DelayedJob
- Inherits:
-
Object
- Object
- RockQueue::DelayedJob
- Defined in:
- lib/rock-queue/adapters/delayed_job.rb
Instance Attribute Summary collapse
-
#obj ⇒ Object
readonly
Returns the value of attribute obj.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DelayedJob
constructor
A new instance of DelayedJob.
- #pop ⇒ Object
- #push(value, options) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DelayedJob
Returns a new instance of DelayedJob.
13 14 |
# File 'lib/rock-queue/adapters/delayed_job.rb', line 13 def initialize( = {}) end |
Instance Attribute Details
#obj ⇒ Object (readonly)
Returns the value of attribute obj.
11 12 13 |
# File 'lib/rock-queue/adapters/delayed_job.rb', line 11 def obj @obj end |
Instance Method Details
#pop ⇒ Object
20 21 |
# File 'lib/rock-queue/adapters/delayed_job.rb', line 20 def pop end |
#push(value, options) ⇒ Object
16 17 18 |
# File 'lib/rock-queue/adapters/delayed_job.rb', line 16 def push(value, ) Delayed::Job.enqueue value end |