Sha256: a517cf454a0afcdfdbe5a04f48e595c73cb2728378443626439c7f6d5f00e851

Contents?: true

Size: 471 Bytes

Versions: 18

Compression:

Stored size: 471 Bytes

Contents

module Rollbar
  module Delay
    class GirlFriday

      class << self
        attr_accessor :queue

        def call(payload)
          new.call(payload)
        end
      end

      def queue_class
        ::GirlFriday::WorkQueue
      end

      def call(payload)
        self.class.queue = queue_class.new(nil, :size => 5) do |payload|
          Rollbar.process_payload_safely(payload)
        end

        self.class.queue.push(payload)
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rollbar-2.1.2 lib/rollbar/delay/girl_friday.rb
rollbar-2.1.1 lib/rollbar/delay/girl_friday.rb
rollbar-2.1.0 lib/rollbar/delay/girl_friday.rb
rollbar-2.0.2 lib/rollbar/delay/girl_friday.rb
rollbar-2.0.1 lib/rollbar/delay/girl_friday.rb
rollbar-2.0.0 lib/rollbar/delay/girl_friday.rb
rollbar-1.5.3 lib/rollbar/delay/girl_friday.rb
rollbar-1.5.2 lib/rollbar/delay/girl_friday.rb
rollbar-1.5.1 lib/rollbar/delay/girl_friday.rb
rollbar-1.5.0 lib/rollbar/delay/girl_friday.rb
rollbar-1.4.5 lib/rollbar/delay/girl_friday.rb
rollbar-1.4.4 lib/rollbar/delay/girl_friday.rb
rollbar-1.4.3 lib/rollbar/delay/girl_friday.rb
rollbar-1.4.2 lib/rollbar/delay/girl_friday.rb
rollbar-1.4.1 lib/rollbar/delay/girl_friday.rb
rollbar-1.4.0 lib/rollbar/delay/girl_friday.rb
rollbar-1.3.2 lib/rollbar/delay/girl_friday.rb
rollbar-1.3.1 lib/rollbar/delay/girl_friday.rb