class OAuth::RequestProxy::Typhoeus::Request
Public Instance Methods
method()
click to toggle source
# File lib/apple_dep_client/hacks/typhoeus_request.rb, line 24 def method request_method = request.options[:method].to_s.upcase request_method.empty? ? "GET" : request_method end
parameters()
click to toggle source
# File lib/apple_dep_client/hacks/typhoeus_request.rb, line 33 def parameters if options[:clobber_request] options[:parameters] else post_parameters.merge(query_parameters).merge(options[:parameters] || {}) end end
uri()
click to toggle source
# File lib/apple_dep_client/hacks/typhoeus_request.rb, line 29 def uri options[:uri].to_s end
Private Instance Methods
post_parameters()
click to toggle source
# File lib/apple_dep_client/hacks/typhoeus_request.rb, line 48 def post_parameters # Post params are only used if posting form data if method == "POST" OAuth::Helper.stringify_keys(request.params || {}) else {} end end
query_parameters()
click to toggle source
# File lib/apple_dep_client/hacks/typhoeus_request.rb, line 43 def query_parameters query = URI.parse(request.url).query query ? CGI.parse(query) : {} end