Class: PlatformAPI::OauthAuthorization
- Inherits:
-
Object
- Object
- PlatformAPI::OauthAuthorization
- Defined in:
- lib/platform-api/client.rb
Overview
OAuth authorizations represent clients that a Heroku user has authorized to automate, customize or extend their usage of the platform. For more information please refer to the Heroku OAuth documentation
Instance Method Summary collapse
-
#create(body) ⇒ Object
Create a new OAuth authorization.
-
#delete(oauth_authorization_id) ⇒ Object
Delete OAuth authorization.
-
#info(oauth_authorization_id) ⇒ Object
Info for an OAuth authorization.
-
#initialize(client) ⇒ OauthAuthorization
constructor
A new instance of OauthAuthorization.
-
#list ⇒ Object
List OAuth authorizations.
Constructor Details
#initialize(client) ⇒ OauthAuthorization
900 901 902 |
# File 'lib/platform-api/client.rb', line 900 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a new OAuth authorization.
907 908 909 |
# File 'lib/platform-api/client.rb', line 907 def create(body) @client..create(body) end |
#delete(oauth_authorization_id) ⇒ Object
Delete OAuth authorization.
914 915 916 |
# File 'lib/platform-api/client.rb', line 914 def delete() @client..delete() end |
#info(oauth_authorization_id) ⇒ Object
Info for an OAuth authorization.
921 922 923 |
# File 'lib/platform-api/client.rb', line 921 def info() @client..info() end |
#list ⇒ Object
List OAuth authorizations.
926 927 928 |
# File 'lib/platform-api/client.rb', line 926 def list() @client..list() end |