Class: FaradayStack::RedirectLimitReached
- Inherits:
-
Faraday::Error::ClientError
- Object
- Faraday::Error::ClientError
- FaradayStack::RedirectLimitReached
- Defined in:
- lib/faraday_stack/follow_redirects.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RedirectLimitReached
constructor
A new instance of RedirectLimitReached.
Constructor Details
#initialize(response) ⇒ RedirectLimitReached
Returns a new instance of RedirectLimitReached.
5 6 7 8 |
# File 'lib/faraday_stack/follow_redirects.rb', line 5 def initialize(response) super "too many redirects; last one to: #{response['location']}" @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/faraday_stack/follow_redirects.rb', line 3 def response @response end |