Exception: Unfuddle::InvalidResponseError

Inherits:
StandardError
  • Object
show all
Includes:
Error
Defined in:
lib/unfuddle/error.rb

Direct Known Subclasses

ServerError, UnauthorizedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ InvalidResponseError

Returns a new instance of InvalidResponseError.



22
23
24
# File 'lib/unfuddle/error.rb', line 22

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



26
27
28
# File 'lib/unfuddle/error.rb', line 26

def response
  @response
end

Instance Method Details

#messageObject



28
29
30
# File 'lib/unfuddle/error.rb', line 28

def message
  response.body
end