JezK
Edit File: api_client_fetcher.rb
# Author: Hiroshi Ichikawa <http://gimite.net/> # The license of this source is "New BSD Licence" require "net/https" require "uri" Net::HTTP.version_1_2 module GoogleDriveV0 class ApiClientFetcher class Response def initialize(client_response) @client_response = client_response end def code return @client_response.status.to_s() end def body return @client_response.body end end def initialize(client) @client = client end attr_reader(:client) def request_raw(method, url, data, extra_header, auth) p [method, url, data, extra_header, auth] client_response = @client.execute( :http_method => method, :uri => url, :body => data, :headers => extra_header) return Response.new(client_response) end end end