Method: HTTParty::ResponseError#initialize

Defined in:
lib/httparty/exceptions.rb

#initialize(response) ⇒ ResponseError

Instantiate an instance of ResponseError with a Net::HTTPResponse object

Parameters:

  • (Net::HTTPResponse)


21
22
23
# File 'lib/httparty/exceptions.rb', line 21

def initialize(response)
  @response = response
end