Class: Fizzy::RequestInfo

Inherits:
Data
  • Object
show all
Defined in:
lib/fizzy/request_info.rb

Overview

Information about an HTTP request for observability hooks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method:, url:, attempt: 1) ⇒ RequestInfo

Returns a new instance of RequestInfo.



6
7
8
# File 'lib/fizzy/request_info.rb', line 6

def initialize(method:, url:, attempt: 1)
  super
end

Instance Attribute Details

#attemptObject (readonly)

Returns the value of attribute attempt

Returns:

  • (Object)

    the current value of attempt



5
6
7
# File 'lib/fizzy/request_info.rb', line 5

def attempt
  @attempt
end

#methodObject (readonly)

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



5
6
7
# File 'lib/fizzy/request_info.rb', line 5

def method
  @method
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



5
6
7
# File 'lib/fizzy/request_info.rb', line 5

def url
  @url
end