Class: OAuth::RequestProxy::Typhoeus::Request

Inherits:
Base
  • Object
show all
Defined in:
lib/apple_dep_client/hacks/typhoeus_request.rb

Instance Method Summary collapse

Instance Method Details

#methodObject



24
25
26
27
# 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

#parametersObject



33
34
35
36
37
38
39
# 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

#uriObject



29
30
31
# File 'lib/apple_dep_client/hacks/typhoeus_request.rb', line 29

def uri
  options[:uri].to_s
end