class Logtail::LogDevices::HTTP::RequestAttempt

Represents an attempt to deliver a request. Requests can be retried, hence why we keep track of the number of attempts.

Attributes

attempts[R]
request[R]

Public Class Methods

new(req) click to toggle source
# File lib/logtail/log_devices/http/request_attempt.rb, line 9
def initialize(req)
  @attempts = 0
  @request = req
end

Public Instance Methods

attempted!() click to toggle source
# File lib/logtail/log_devices/http/request_attempt.rb, line 14
def attempted!
  @attempts += 1
end