Exception: Moob::ResponseError

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

Instance Method Summary collapse

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_sObject


10
11
12
# File 'lib/moob.rb', line 10

def to_s
  "#{@response.url} failed (status #{@response.status})"
end