Sha256: 10195b44b9e4159fc1edda1c883964f3daa6feb16454a1f8a5a94c038e13599f

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

module Capcoauth
  module OAuth
    class AccessToken
      attr_accessor :token
      attr_accessor :user_id

      def initialize(token)
        @token = token
      end

      def verify
        nil unless @token
        TokenVerifier.verify(self)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
capcoauth-0.2.0 lib/capcoauth/oauth/access_token.rb
capcoauth-0.1.4 lib/capcoauth/oauth/access_token.rb
capcoauth-0.1.3 lib/capcoauth/oauth/access_token.rb
capcoauth-0.1.2 lib/capcoauth/oauth/access_token.rb
capcoauth-0.1.1 lib/capcoauth/oauth/access_token.rb