Exception: Waves::Dispatchers::Redirect

Inherits:
Exception
  • Object
show all
Defined in:
lib/dispatchers/base.rb

Overview

Redirect exceptions are rescued by the Waves dispatcher and used to set the response status and location.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, status = '302') ⇒ Redirect

Returns a new instance of Redirect.



15
16
17
18
# File 'lib/dispatchers/base.rb', line 15

def initialize( path, status = '302' )
  @path = path
  @status = status
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



14
15
16
# File 'lib/dispatchers/base.rb', line 14

def path
  @path
end

#statusObject (readonly)

Returns the value of attribute status.



14
15
16
# File 'lib/dispatchers/base.rb', line 14

def status
  @status
end