Class: OAuth::RequestProxy::RackRequest
- Inherits:
-
Base
- Object
- Base
- OAuth::RequestProxy::RackRequest
show all
- Defined in:
- lib/oauth/request_proxy/rack_request.rb
Instance Attribute Summary
Attributes inherited from Base
#options, #request
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #non_oauth_parameters, #normalized_parameters, #normalized_uri, #oauth_consumer_key, #oauth_header, #oauth_nonce, #oauth_parameters, #oauth_signature, #oauth_signature_method, #oauth_timestamp, #oauth_token, #oauth_version, #parameters_for_signature, proxies, #sign, #sign!, #signature_base_string, #signed?, #signed_uri
Methods included from Helper
#escape, #generate_key, #generate_timestamp, #normalize, #parse_header, #unescape
Instance Method Details
#method ⇒ Object
9
10
11
|
# File 'lib/oauth/request_proxy/rack_request.rb', line 9
def method
request.env["rack.methodoverride.original_method"] || request.request_method
end
|
#parameters ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/oauth/request_proxy/rack_request.rb', line 17
def parameters
if options[:clobber_request]
options[:parameters] || {}
else
params = request_params.merge(query_params).merge()
params.merge(options[:parameters] || {})
end
end
|
#signature ⇒ Object
26
27
28
|
# File 'lib/oauth/request_proxy/rack_request.rb', line 26
def signature
parameters['oauth_signature']
end
|
#uri ⇒ Object
13
14
15
|
# File 'lib/oauth/request_proxy/rack_request.rb', line 13
def uri
request.url
end
|