Sha256: c454132538def893d8f70ba85cd5bc0245d10ab51f88acd41d8f530aabc5d297

Contents?: true

Size: 339 Bytes

Versions: 12

Compression:

Stored size: 339 Bytes

Contents

require 'sucker_punch'

module Rollbar
  module Delay
    class SuckerPunch
      def self.handle(payload)
        @@sucker_punch_worker ||= self.new
        @@sucker_punch_worker.async.perform payload
      end

      include ::SuckerPunch::Job

      def perform(*args)
        Rollbar.process_payload(*args)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rollbar-0.11.8 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.7 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.6 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.5 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.4 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.3 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.2 lib/rollbar/delay/sucker_punch.rb
rollbar-0.11.1 lib/rollbar/delay/sucker_punch.rb
rollbar-0.10.14 lib/rollbar/delay/sucker_punch.rb
rollbar-0.10.12 lib/rollbar/delay/sucker_punch.rb
rollbar-0.10.11 lib/rollbar/delay/sucker_punch.rb
rollbar-0.10.10 lib/rollbar/delay/sucker_punch.rb