Class: LearnSprout::Response::RedirectLimitReached
- Inherits:
-
Faraday::Error::ClientError
- Object
- Faraday::Error::ClientError
- LearnSprout::Response::RedirectLimitReached
- Defined in:
- lib/learnsprout/response/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.
6 7 8 9 |
# File 'lib/learnsprout/response/follow_redirects.rb', line 6 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.
4 5 6 |
# File 'lib/learnsprout/response/follow_redirects.rb', line 4 def response @response end |