Class: Waves::Response::Redirects::Found
- Includes:
- Waves::Response::Redirect
- Defined in:
- lib/waves/response/redirects.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
- #call(response) ⇒ Object
-
#initialize(location) ⇒ Found
constructor
A new instance of Found.
Constructor Details
#initialize(location) ⇒ Found
Returns a new instance of Found.
14 15 16 |
# File 'lib/waves/response/redirects.rb', line 14 def initialize( location ) @location = location ; super() end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
13 14 15 |
# File 'lib/waves/response/redirects.rb', line 13 def location @location end |
Instance Method Details
#call(response) ⇒ Object
17 18 19 20 |
# File 'lib/waves/response/redirects.rb', line 17 def call( response ) response.location = location super( response ) end |