Class: FaradayStack::RedirectLimitReached

Inherits:
Faraday::Error::ClientError
  • Object
show all
Defined in:
lib/faraday_stack/follow_redirects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/faraday_stack/follow_redirects.rb', line 3

def response
  @response
end