Module: Oauth::Models::Consumers::Token::InstanceMethods

Defined in:
lib/oauth/models/consumers/token.rb

Instance Method Summary collapse

Instance Method Details

#clientObject

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_clientObject



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