Class: OAuth::RequestProxy::Typhoeus::Request
- Inherits:
-
Base
- Object
- Base
- OAuth::RequestProxy::Typhoeus::Request
- Defined in:
- lib/apple_dep_client/hacks/typhoeus_request.rb
Instance Method Summary collapse
Instance Method Details
#method ⇒ Object
24 25 26 27 |
# File 'lib/apple_dep_client/hacks/typhoeus_request.rb', line 24 def method request_method = request.[:method].to_s.upcase request_method.empty? ? "GET" : request_method end |
#parameters ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/apple_dep_client/hacks/typhoeus_request.rb', line 33 def parameters if [:clobber_request] [:parameters] else post_parameters.merge(query_parameters).merge([:parameters] || {}) end end |
#uri ⇒ Object
29 30 31 |
# File 'lib/apple_dep_client/hacks/typhoeus_request.rb', line 29 def uri [:uri].to_s end |