Exception: Crabfarm::HttpClient::HttpRequestError

Inherits:
StandardError
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/crabfarm/http_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_response) ⇒ HttpRequestError

Returns a new instance of HttpRequestError.



13
14
15
16
# File 'lib/crabfarm/http_client.rb', line 13

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

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



11
12
13
# File 'lib/crabfarm/http_client.rb', line 11

def response
  @response
end