Exception: Wesabe::Request::Redirect
- Defined in:
- lib/wesabe/request.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(location) ⇒ Redirect
constructor
A new instance of Redirect.
- #inspect ⇒ Object
- #message ⇒ Object
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
#location ⇒ Object (readonly)
Returns the value of attribute location.
147 148 149 |
# File 'lib/wesabe/request.rb', line 147 def location @location end |
Instance Method Details
#inspect ⇒ Object
157 158 159 |
# File 'lib/wesabe/request.rb', line 157 def inspect "#<#{self.class.name} Location=#{location.inspect}>" end |
#message ⇒ Object
153 154 155 |
# File 'lib/wesabe/request.rb', line 153 def "You've been redirected to #{location}" end |