Class: Delayed::Backend::JobPreparer
- Inherits:
-
Object
- Object
- Delayed::Backend::JobPreparer
- Defined in:
- lib/delayed/backend/job_preparer.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(*args) ⇒ JobPreparer
constructor
A new instance of JobPreparer.
- #prepare ⇒ Object
Constructor Details
#initialize(*args) ⇒ JobPreparer
Returns a new instance of JobPreparer.
8 9 10 11 |
# File 'lib/delayed/backend/job_preparer.rb', line 8 def initialize(*args) @options = args..dup @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
6 7 8 |
# File 'lib/delayed/backend/job_preparer.rb', line 6 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/delayed/backend/job_preparer.rb', line 6 def @options end |
Instance Method Details
#prepare ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/delayed/backend/job_preparer.rb', line 13 def prepare set_payload set_queue_name set_priority handle_deprecation end |