Module: Oauth::Models::Consumers::Token::InstanceMethods
- Defined in:
- lib/oauth/models/consumers/token.rb
Instance Method Summary collapse
-
#client ⇒ Object
Main client for interfacing with remote service.
- #simple_client ⇒ Object
Instance Method Details
#client ⇒ Object
Main client for interfacing with remote service. Override this to use preexisting library eg. Twitter gem.
53 54 55 |
# File 'lib/oauth/models/consumers/token.rb', line 53 def client @client||=OAuth::AccessToken.new self.class.consumer,token,secret end |
#simple_client ⇒ Object
57 58 59 |
# File 'lib/oauth/models/consumers/token.rb', line 57 def simple_client @simple_client||=SimpleClient.new OAuth::AccessToken.new( self.class.consumer,token,secret) end |