class Capcoauth::OAuth::AccessToken

Attributes

token[RW]
user_id[RW]

Public Class Methods

new(token) click to toggle source
# File lib/capcoauth/oauth/access_token.rb, line 7
def initialize(token)
  @token = token
  @user_id = TTLCache.user_id_for(token)
end

Public Instance Methods

verify() click to toggle source
# File lib/capcoauth/oauth/access_token.rb, line 12
def verify
  TokenVerifier.verify(self)
end