Exception: RestClient::Redirect
- Inherits:
-
Exception
- Object
- RuntimeError
- Exception
- RestClient::Redirect
- Defined in:
- lib/restclient/exceptions.rb
Overview
A redirect was encountered; caught by execute to retry with the new url.
Instance Attribute Summary (collapse)
-
- (Object) url
Returns the value of attribute url.
Attributes inherited from Exception
Instance Method Summary (collapse)
-
- (Redirect) initialize(url)
constructor
A new instance of Redirect.
Methods inherited from Exception
#http_body, #http_code, #inspect, #to_s
Constructor Details
- (Redirect) initialize(url)
A new instance of Redirect
161 162 163 |
# File 'lib/restclient/exceptions.rb', line 161 def initialize(url) @url = url end |
Instance Attribute Details
- (Object) url
Returns the value of attribute url
159 160 161 |
# File 'lib/restclient/exceptions.rb', line 159 def url @url end |