Module: Qe::Worker::InstanceMethods
- Defined in:
- lib/qe/worker/instance_methods.rb
Instance Method Summary collapse
-
#after ⇒ Object
Set after hook.
-
#before ⇒ Object
Set before hook.
-
#error(error) ⇒ Object
Set the error hook.
- #initialize(options) ⇒ Object
-
#options ⇒ Object
Return options that were provided when adding job to the queue.
Instance Method Details
#after ⇒ Object
Set after hook.
19 20 |
# File 'lib/qe/worker/instance_methods.rb', line 19 def after end |
#before ⇒ Object
Set before hook.
15 16 |
# File 'lib/qe/worker/instance_methods.rb', line 15 def before end |
#error(error) ⇒ Object
Set the error hook.
23 24 25 |
# File 'lib/qe/worker/instance_methods.rb', line 23 def error(error) raise error end |
#initialize(options) ⇒ Object
4 5 6 |
# File 'lib/qe/worker/instance_methods.rb', line 4 def initialize() = HashWithIndifferentAccess.new() end |
#options ⇒ Object
Return options that were provided when adding job to the queue.
10 11 12 |
# File 'lib/qe/worker/instance_methods.rb', line 10 def end |