Class: OauthProviderEngine::AccessToken
- Defined in:
- app/models/oauth_provider_engine/access_token.rb
Instance Method Summary collapse
Instance Method Details
#extend_access ⇒ Object
24 25 26 |
# File 'app/models/oauth_provider_engine/access_token.rb', line 24 def extend_access generate_expiry end |
#extend_access! ⇒ Object
28 29 30 31 |
# File 'app/models/oauth_provider_engine/access_token.rb', line 28 def extend_access! extend_access self.save end |
#to_query ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'app/models/oauth_provider_engine/access_token.rb', line 15 def to_query params = { :oauth_token => token, :oauth_token_secret => secret } params[:oauth_authorization_expires_at] = expires_at.to_i if expires_at.present? params.to_query end |