Class: Rack::OauthProxy::AccessTokens::Valid

Inherits:
Base
  • Object
show all
Defined in:
lib/rack/oauth_proxy/access_tokens/valid.rb

Constant Summary

Constants inherited from Base

Base::ATTRIBUTE_NAMES

Instance Method Summary collapse

Methods inherited from Base

#scopes

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

Returns:

  • (Boolean)

9
10
11
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 9

def accessible?
  true
end

#expired?Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 17

def expired?
  false
end

#revoked?Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/rack/oauth_proxy/access_tokens/valid.rb', line 13

def revoked?
  false
end