Class: Rack::OauthProxy::AccessTokens::Base
- Inherits:
-
Object
- Object
- Rack::OauthProxy::AccessTokens::Base
- Defined in:
- lib/rack/oauth_proxy/access_tokens/base.rb
Constant Summary collapse
- ATTRIBUTE_NAMES =
%w[ application_id expired_at refresh_token resource_owner_id scope token token_type ]
Instance Method Summary collapse
- #accessible? ⇒ Boolean
- #expired? ⇒ Boolean
-
#initialize(attributes) ⇒ Base
constructor
A new instance of Base.
- #revoked? ⇒ Boolean
- #scopes ⇒ Object
Constructor Details
#initialize(attributes) ⇒ Base
Returns a new instance of Base.
17 18 19 |
# File 'lib/rack/oauth_proxy/access_tokens/base.rb', line 17 def initialize(attributes) raise NotImplementedError, "You must implement #{self.class}##{__method__}" end |
Instance Method Details
#accessible? ⇒ Boolean
21 22 23 |
# File 'lib/rack/oauth_proxy/access_tokens/base.rb', line 21 def accessible? raise NotImplementedError, "You must implement #{self.class}##{__method__}" end |
#expired? ⇒ Boolean
29 30 31 |
# File 'lib/rack/oauth_proxy/access_tokens/base.rb', line 29 def expired? raise NotImplementedError, "You must implement #{self.class}##{__method__}" end |
#revoked? ⇒ Boolean
25 26 27 |
# File 'lib/rack/oauth_proxy/access_tokens/base.rb', line 25 def revoked? raise NotImplementedError, "You must implement #{self.class}##{__method__}" end |
#scopes ⇒ Object
33 34 35 |
# File 'lib/rack/oauth_proxy/access_tokens/base.rb', line 33 def scopes scope.split(" ") if scope end |