class Typhoeus::Easy
def method=(method)
def method=(method) @method = method if method == :get set_option(OPTION_VALUES[:CURLOPT_HTTPGET], 1) elsif method == :post set_option(OPTION_VALUES[:CURLOPT_HTTPPOST], 1) self.post_data = "" elsif method == :put set_option(OPTION_VALUES[:CURLOPT_UPLOAD], 1) self.request_body = "" unless @request_body else set_option(OPTION_VALUES[:CURLOPT_CUSTOMREQUEST], "DELETE") end end