Exception: Pincers::Http::RequestError

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/pincers/http/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_response) ⇒ RequestError

Returns a new instance of RequestError.



9
10
11
12
# File 'lib/pincers/http/errors.rb', line 9

def initialize(_response)
  @response = _response
  super _response.message
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/pincers/http/errors.rb', line 7

def response
  @response
end