Exception: Moob::ResponseError
- Inherits:
-
Exception
- Object
- Exception
- Moob::ResponseError
- Defined in:
- lib/moob.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
A new instance of ResponseError.
- #to_s ⇒ Object
Constructor Details
#initialize(response) ⇒ ResponseError
Returns a new instance of ResponseError.
7 8 9 |
# File 'lib/moob.rb', line 7 def initialize response @response = response end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/moob.rb', line 10 def to_s "#{@response.url} failed (status #{@response.status})" end |