Exception: Sidewalk::Redirect
- Defined in:
- lib/sidewalk/redirect.rb
Overview
Base class for HTTP-level redirections.
This, and its’ subclasses are expected to be raised.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Where to redirect to.
Instance Method Summary collapse
-
#initialize(url, status, description) ⇒ Redirect
constructor
Initialize a Redirect.
Methods inherited from HttpError
Constructor Details
#initialize(url, status, description) ⇒ Redirect
Initialize a Redirect.
You probably don’t want to use this directly - use PermanentRedirect or SeeOtherRedirect instead.
20 21 22 23 |
# File 'lib/sidewalk/redirect.rb', line 20 def initialize url, status, description @url = url.to_s super status, description end |
Instance Attribute Details
#url ⇒ Object (readonly)
Where to redirect to.
9 10 11 |
# File 'lib/sidewalk/redirect.rb', line 9 def url @url end |