Class: Delayed::Backend::Dummy::Job
- Inherits:
-
Object
- Object
- Delayed::Backend::Dummy::Job
- Includes:
- Base
- Defined in:
- lib/delayed/backend/dummy.rb
Instance Attribute Summary collapse
-
#attempts ⇒ Object
Returns the value of attribute attempts.
-
#failed_at ⇒ Object
Returns the value of attribute failed_at.
-
#handler ⇒ Object
Returns the value of attribute handler.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_error ⇒ Object
Returns the value of attribute last_error.
-
#locked_at ⇒ Object
Returns the value of attribute locked_at.
-
#locked_by ⇒ Object
Returns the value of attribute locked_by.
-
#priority ⇒ Object
Returns the value of attribute priority.
-
#queue ⇒ Object
Returns the value of attribute queue.
-
#run_at ⇒ Object
Returns the value of attribute run_at.
Instance Method Summary collapse
- #destroy ⇒ Object
-
#initialize(options) ⇒ Job
constructor
A new instance of Job.
Constructor Details
#initialize(options) ⇒ Job
Returns a new instance of Job.
10 11 12 13 |
# File 'lib/delayed/backend/dummy.rb', line 10 def initialize() @attempts = 0 @payload_object = [:payload_object] end |
Instance Attribute Details
#attempts ⇒ Object
Returns the value of attribute attempts.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def attempts @attempts end |
#failed_at ⇒ Object
Returns the value of attribute failed_at.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def failed_at @failed_at end |
#handler ⇒ Object
Returns the value of attribute handler.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def handler @handler end |
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def id @id end |
#last_error ⇒ Object
Returns the value of attribute last_error.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def last_error @last_error end |
#locked_at ⇒ Object
Returns the value of attribute locked_at.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def locked_at @locked_at end |
#locked_by ⇒ Object
Returns the value of attribute locked_by.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def locked_by @locked_by end |
#priority ⇒ Object
Returns the value of attribute priority.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def priority @priority end |
#queue ⇒ Object
Returns the value of attribute queue.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def queue @queue end |
#run_at ⇒ Object
Returns the value of attribute run_at.
7 8 9 |
# File 'lib/delayed/backend/dummy.rb', line 7 def run_at @run_at end |
Instance Method Details
#destroy ⇒ Object
15 16 17 |
# File 'lib/delayed/backend/dummy.rb', line 15 def destroy # puts last_error end |