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.
6 7 8 9 |
# File 'lib/delayed/backend/job_preparer.rb', line 6 def initialize(*args) @options = args..dup @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
4 5 6 |
# File 'lib/delayed/backend/job_preparer.rb', line 4 def args @args end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/delayed/backend/job_preparer.rb', line 4 def @options end |
Instance Method Details
#prepare ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/delayed/backend/job_preparer.rb', line 11 def prepare set_payload set_queue_name set_priority handle_deprecation end |