Class: Rack::OAuth2::AccessToken::Legacy
- Inherits:
-
Rack::OAuth2::AccessToken
- Object
- Rack::OAuth2::AccessToken
- Rack::OAuth2::AccessToken::Legacy
- Defined in:
- lib/rack/oauth2/access_token/legacy.rb
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Legacy
constructor
A new instance of Legacy.
Methods inherited from Rack::OAuth2::AccessToken
#delete, #get, #post, #put, #token_response
Constructor Details
#initialize(attributes = {}) ⇒ Legacy
Returns a new instance of Legacy.
5 6 7 8 |
# File 'lib/rack/oauth2/access_token/legacy.rb', line 5 def initialize(attributes = {}) super self.expires_in = self.expires_in.try(:to_i) end |