Class: Resque::Failure::Hoptoad

Inherits:
Base
  • Object
show all
Includes:
Thoughtbot
Defined in:
lib/resque/failure/hoptoad.rb

Overview

A Failure backend that sends exceptions raised by jobs to Hoptoad.

To use it, put this code in an initializer, Rake task, or wherever:

require 'resque/failure/hoptoad'

Resque::Failure::Multiple.classes = [Resque::Failure::Redis, Resque::Failure::Hoptoad]
Resque::Failure.backend = Resque::Failure::Multiple

Once you’ve configured resque to use the Hoptoad failure backend, you’ll want to setup an initializer to configure the Hoptoad.

HoptoadNotifier.configure do |config|

config.api_key = 'your_key_here'

end For more information see github.com/thoughtbot/hoptoad_notifier

Instance Attribute Summary

Attributes inherited from Base

#exception, #payload, #queue, #worker

Method Summary

Methods included from Thoughtbot

included, #save

Methods inherited from Base

all, clear, count, #initialize, #log, remove, requeue, #save, url

Constructor Details

This class inherits a constructor from Resque::Failure::Base