Class: OauthProviderEngine::AccessToken

Inherits:
Base
  • Object
show all
Defined in:
app/models/oauth_provider_engine/access_token.rb

Instance Method Summary collapse

Instance Method Details

#to_queryObject



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