Class: Rjob::Worker
- Inherits:
-
Object
- Object
- Rjob::Worker
- Defined in:
- lib/rjob/worker.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(context, job) ⇒ Worker
constructor
A new instance of Worker.
Constructor Details
#initialize(context, job) ⇒ Worker
Returns a new instance of Worker.
7 8 9 10 |
# File 'lib/rjob/worker.rb', line 7 def initialize(context, job) @context = context @job = job end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
4 5 6 |
# File 'lib/rjob/worker.rb', line 4 def context @context end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
5 6 7 |
# File 'lib/rjob/worker.rb', line 5 def job @job end |
Class Method Details
.retry_options ⇒ Object
12 13 14 15 16 |
# File 'lib/rjob/worker.rb', line 12 def self. { retry: false } end |