Class: Dwolla::Response::RedirectLimitReached

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ RedirectLimitReached

Returns a new instance of RedirectLimitReached.



6
7
8
9
# File 'lib/dwolla/response/follow_redirects.rb', line 6

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.



4
5
6
# File 'lib/dwolla/response/follow_redirects.rb', line 4

def response
  @response
end