Module: Qe::Worker::InstanceMethods

Defined in:
lib/qe/worker/instance_methods.rb

Instance Method Summary collapse

Instance Method Details

#afterObject

Set after hook.



19
20
# File 'lib/qe/worker/instance_methods.rb', line 19

def after
end

#beforeObject

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(options)
  @options = options
end

#optionsObject

Return options that were provided when adding job to the queue.



10
11
12
# File 'lib/qe/worker/instance_methods.rb', line 10

def options
  @options
end