Exception: Waves::Dispatchers::Redirect

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Redirect.



9
10
11
12
# File 'lib/dispatchers/base.rb', line 9

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

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



8
9
10
# File 'lib/dispatchers/base.rb', line 8

def path
  @path
end

#statusObject (readonly)

Returns the value of attribute status.



8
9
10
# File 'lib/dispatchers/base.rb', line 8

def status
  @status
end