Class: Resque::Failure::Squash
- Inherits:
-
Base
- Object
- Base
- Resque::Failure::Squash
- Defined in:
- lib/resque/failure/squash.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.configure {|configuration| ... } ⇒ Object
16 17 18 19 20 |
# File 'lib/resque/failure/squash.rb', line 16 def self.configure configuration = {} yield configuration ::Squash::Ruby.configure configuration end |
Instance Method Details
#context ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/resque/failure/squash.rb', line 8 def context { :worker => worker, :queue => queue, :payload => payload } end |
#save ⇒ Object
4 5 6 |
# File 'lib/resque/failure/squash.rb', line 4 def save ::Squash::Ruby.notify exception, context end |