Exception: Wesabe::Request::Redirect

Inherits:
Exception
  • Object
show all
Defined in:
lib/wesabe/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ Redirect

Returns a new instance of Redirect.



149
150
151
# File 'lib/wesabe/request.rb', line 149

def initialize(location)
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



147
148
149
# File 'lib/wesabe/request.rb', line 147

def location
  @location
end

Instance Method Details

#inspectObject



157
158
159
# File 'lib/wesabe/request.rb', line 157

def inspect
  "#<#{self.class.name} Location=#{location.inspect}>"
end

#messageObject



153
154
155
# File 'lib/wesabe/request.rb', line 153

def message
  "You've been redirected to #{location}"
end