Exception: Shutl::Resource::Error

Inherits:
IOError
  • Object
show all
Defined in:
lib/shutl/resource/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, http_response) ⇒ Error

Returns a new instance of Error.



4
5
6
7
8
# File 'lib/shutl/resource/errors.rb', line 4

def initialize message, http_response
  @response = http_response

  super message #it really is rather spot on, why thanks for saying, kind sir.
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



2
3
4
# File 'lib/shutl/resource/errors.rb', line 2

def response
  @response
end