Method: RestClient::ResponseForException#method_missing

Defined in:
lib/rest-client-1.6.6-master/lib/restclient/exceptions.rb

#method_missing(symbol, *args) ⇒ Object



66
67
68
69
70
71
72
73
# File 'lib/rest-client-1.6.6-master/lib/restclient/exceptions.rb', line 66

def method_missing symbol, *args
  if net_http_res.respond_to? symbol
    warn "[warning] The response contained in an RestClient::Exception is now a RestClient::Response instead of a Net::HTTPResponse, please update your code"
    net_http_res.send symbol, *args
  else
    super
  end
end