Parent

ActionController::TestRequest

Public Class Methods

use_oauth=(bool) click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 16
16:     def self.use_oauth=(bool)
17:       @use_oauth = bool
18:     end
use_oauth?() click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 20
20:     def self.use_oauth?
21:       @use_oauth
22:     end

Public Instance Methods

apply_oauth!() click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 33
33:     def apply_oauth!
34:       return unless ActionController::TestRequest.use_oauth? && @oauth_options
35: 
36:       @oauth_helper = OAuth::Client::Helper.new(self, @oauth_options.merge(:request_uri => request_uri))
37:       @oauth_helper.amend_user_agent_header(env)
38: 
39:       self.send("set_oauth_#{@oauth_options[:scheme]}")
40:     end
configure_oauth(consumer = nil, token = nil, options = {}) click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 24
24:     def configure_oauth(consumer = nil, token = nil, options = {})
25:       @oauth_options = { :consumer  => consumer,
26:                          :token     => token,
27:                          :scheme    => 'header',
28:                          :signature_method => nil,
29:                          :nonce     => nil,
30:                          :timestamp => nil }.merge(options)
31:     end
set_oauth_header() click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 42
42:     def set_oauth_header
43:       env['Authorization'] = @oauth_helper.header
44:     end
set_oauth_parameters() click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 46
46:     def set_oauth_parameters
47:       @query_parameters = @oauth_helper.parameters_with_oauth
48:       @query_parameters.merge!(:oauth_signature => @oauth_helper.signature)
49:     end
set_oauth_query_string() click to toggle source
    # File lib/oauth/client/action_controller_request.rb, line 51
51:     def set_oauth_query_string
52:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.