Class: Fizzy::RequestInfo
- Inherits:
-
Data
- Object
- Data
- Fizzy::RequestInfo
- Defined in:
- lib/fizzy/request_info.rb
Overview
Information about an HTTP request for observability hooks.
Instance Attribute Summary collapse
-
#attempt ⇒ Object
readonly
Returns the value of attribute attempt.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(method:, url:, attempt: 1) ⇒ RequestInfo
constructor
A new instance of RequestInfo.
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
#attempt ⇒ Object (readonly)
Returns the value of attribute attempt
5 6 7 |
# File 'lib/fizzy/request_info.rb', line 5 def attempt @attempt end |
#method ⇒ Object (readonly)
Returns the value of attribute method
5 6 7 |
# File 'lib/fizzy/request_info.rb', line 5 def method @method end |
#url ⇒ Object (readonly)
Returns the value of attribute url
5 6 7 |
# File 'lib/fizzy/request_info.rb', line 5 def url @url end |