Sha256: 42f9ff095f775d7dcdb118aef5ccb1a4da8d99898f0de8967a8381c66b541403

Contents?: true

Size: 430 Bytes

Versions: 19

Compression:

Stored size: 430 Bytes

Contents

module Timber
  module LogDevices
    class HTTP
      # Represents an attempt to deliver a request. Requests can be retried, hence
      # why we keep track of the number of attempts.
      class RequestAttempt
        attr_reader :attempts, :request

        def initialize(req)
          @attempts = 0
          @request = req
        end

        def attempted!
          @attempts += 1
        end
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
timber-3.0.1 lib/timber/log_devices/http/request_attempt.rb
timber-3.0.0 lib/timber/log_devices/http/request_attempt.rb
timber-2.6.2 lib/timber/log_devices/http/request_attempt.rb
timber-2.6.1 lib/timber/log_devices/http/request_attempt.rb
timber-2.6.0 lib/timber/log_devices/http/request_attempt.rb
timber-2.6.0.pre.beta2 lib/timber/log_devices/http/request_attempt.rb
timber-2.6.0.pre.beta1 lib/timber/log_devices/http/request_attempt.rb
timber-2.5.1 lib/timber/log_devices/http/request_attempt.rb
timber-2.5.0 lib/timber/log_devices/http/request_attempt.rb
timber-2.4.0 lib/timber/log_devices/http/request_attempt.rb
timber-2.3.4 lib/timber/log_devices/http/request_attempt.rb
timber-2.3.3 lib/timber/log_devices/http/request_attempt.rb
timber-2.3.2 lib/timber/log_devices/http/request_attempt.rb
timber-2.3.1 lib/timber/log_devices/http/request_attempt.rb
timber-2.3.0 lib/timber/log_devices/http/request_attempt.rb
timber-2.2.3 lib/timber/log_devices/http/request_attempt.rb
timber-2.2.2 lib/timber/log_devices/http/request_attempt.rb
timber-2.2.1 lib/timber/log_devices/http/request_attempt.rb
timber-2.2.0 lib/timber/log_devices/http/request_attempt.rb