Class: Kong::OAuth2Token

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/kong/oauth2_token.rb

Constant Summary collapse

ATTRIBUTE_NAMES =
%w(id credential_id expires_in created_at token_type access_token refresh_token scope authenticated_userid).freeze
API_END_POINT =
"/oauth2_tokens/".freeze

Instance Attribute Summary

Attributes included from Base

#api_end_point, #attributes

Instance Method Summary collapse

Methods included from Base

#client, #create, #create_or_update, #delete, #get, included, #initialize, #method_missing, #new?, #respond_to?, #save, #update

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Kong::Base

Instance Method Details

#oauth_appKong::OAuthApp

Get OAuthApp resource

Returns:



10
11
12
# File 'lib/kong/oauth2_token.rb', line 10

def oauth_app
  Kong::OAuthApp.find_by_id(self.credential_id)
end