Class: Waves::Response::Redirects::Found

Inherits:
Object
  • Object
show all
Includes:
Waves::Response::Redirect
Defined in:
lib/waves/response/redirects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (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