Method: OAuthClient#initialize
- Defined in:
- lib/oauthclient.rb
#initialize(*arg) ⇒ OAuthClient
Creates a OAuthClient instance which provides OAuth related methods in addition to HTTPClient.
Method signature is as same as HTTPClient. See HTTPClient.new
31 32 33 34 35 36 |
# File 'lib/oauthclient.rb', line 31 def initialize(*arg) super @oauth_config = HTTPClient::OAuth::Config.new self.www_auth.oauth.set_config(nil, @oauth_config) self.www_auth.oauth.challenge(nil) end |