Class: Net::HTTPRequest
- Inherits:
-
Object
- Object
- Net::HTTPRequest
- Includes:
- OAuth::Helper
- Defined in:
- lib/oauth/client/net_http.rb
Instance Method Summary collapse
- #oauth!(http, consumer = nil, token = nil, options = {}) ⇒ Object
- #oauth_helper ⇒ Object
- #signature_base_string(http, consumer = nil, token = nil, options = {}) ⇒ Object
Methods included from OAuth::Helper
Instance Method Details
#oauth!(http, consumer = nil, token = nil, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/oauth/client/net_http.rb', line 8 def oauth!(http, consumer = nil, token = nil, = {}) = { :request_uri => oauth_full_request_uri(http), :consumer => consumer, :token => token, :scheme => 'header', :signature_method => nil, :nonce => nil, :timestamp => nil }.merge() @oauth_helper = OAuth::Client::Helper.new(self, ) self.send("set_oauth_#{options[:scheme]}") end |
#oauth_helper ⇒ Object
33 34 35 |
# File 'lib/oauth/client/net_http.rb', line 33 def oauth_helper @oauth_helper end |
#signature_base_string(http, consumer = nil, token = nil, options = {}) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/oauth/client/net_http.rb', line 21 def signature_base_string(http, consumer = nil, token = nil, = {}) = { :request_uri => oauth_full_request_uri(http), :consumer => consumer, :token => token, :scheme => 'header', :signature_method => nil, :nonce => nil, :timestamp => nil }.merge() OAuth::Client::Helper.new(self, ).signature_base_string end |