Class: Rack::OauthProxy::AccessTokens::Valid
- Defined in:
- lib/rack/oauth_proxy/access_tokens/valid.rb
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
- #accessible? ⇒ Boolean
- #expired? ⇒ Boolean
-
#initialize(attributes) ⇒ Valid
constructor
A new instance of Valid.
- #revoked? ⇒ Boolean
Methods inherited from Base
Constructor Details
#initialize(attributes) ⇒ Valid
Returns a new instance of Valid.
5 6 7 |
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 5 def initialize(attributes) ATTRIBUTE_NAMES.each {|name| send("#{name}=", attributes[name]) } end |
Instance Method Details
#accessible? ⇒ Boolean
9 10 11 |
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 9 def accessible? true end |
#expired? ⇒ Boolean
17 18 19 |
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 17 def expired? false end |
#revoked? ⇒ Boolean
13 14 15 |
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 13 def revoked? false end |