Module: Passport::Oauth::Consumable::InstanceMethods

Defined in:
lib/passport/oauth/client/consumable.rb

Instance Method Summary collapse

Instance Method Details

#access_tokenObject



32
33
34
35
# File 'lib/passport/oauth/client/consumable.rb', line 32

def access_token
  @access_token ||= self.class.access_token(token, secret, version)
  @access_token
end

#clearObject



41
42
43
# File 'lib/passport/oauth/client/consumable.rb', line 41

def clear
  @access_token = nil
end

#consumer(options = {}) ⇒ Object



37
38
39
# File 'lib/passport/oauth/client/consumable.rb', line 37

def consumer(options = {})
  self.class.consumer(options)
end