Sha256: 6992266dbc053c0751ad62c91a5a4d1d7e0f726ba7bfa11097ee0f2f335fdc52

Contents?: true

Size: 508 Bytes

Versions: 16

Compression:

Stored size: 508 Bytes

Contents

require 'resque'

module Rollbar
  module Delay
    class Resque
      def self.call(payload)
        new.call(payload)
      end

      def call(payload)
        ::Resque.enqueue(Job, payload)
      end

      class Job
        class << self
          attr_accessor :queue
        end

        self.queue = :default

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

        def perform(payload)
          Rollbar.process_payload(payload)
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rollbar-1.3.0 lib/rollbar/delay/resque.rb
rollbar-1.2.13 lib/rollbar/delay/resque.rb
rollbar-1.2.12 lib/rollbar/delay/resque.rb
rollbar-1.2.11 lib/rollbar/delay/resque.rb
rollbar-1.2.10 lib/rollbar/delay/resque.rb
rollbar-1.2.9 lib/rollbar/delay/resque.rb
rollbar-1.2.8 lib/rollbar/delay/resque.rb
rollbar-1.2.7 lib/rollbar/delay/resque.rb
rollbar-1.2.6 lib/rollbar/delay/resque.rb
rollbar-1.2.5 lib/rollbar/delay/resque.rb
rollbar-1.2.4 lib/rollbar/delay/resque.rb
rollbar-1.2.3 lib/rollbar/delay/resque.rb
rollbar-1.2.2 lib/rollbar/delay/resque.rb
rollbar-1.2.1 lib/rollbar/delay/resque.rb
rollbar-1.2.0 lib/rollbar/delay/resque.rb
rollbar-1.1.0 lib/rollbar/delay/resque.rb