Class: Rollbar::Delay::Resque::Job

Inherits:
Object
  • Object
show all
Defined in:
lib/rollbar/delay/resque.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.queueObject

Returns the value of attribute queue.



16
17
18
# File 'lib/rollbar/delay/resque.rb', line 16

def queue
  @queue
end

Class Method Details

.perform(payload) ⇒ Object



21
22
23
# File 'lib/rollbar/delay/resque.rb', line 21

def self.perform(payload)
  new.perform(payload)
end

Instance Method Details

#perform(payload) ⇒ Object



25
26
27
28
29
# File 'lib/rollbar/delay/resque.rb', line 25

def perform(payload)
  Rollbar.process_from_async_handler(payload)

  # Do not rescue. Resque will call the error handler.
end