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
Returns a new instance of OauthAuthorization.
897 898 899 |
# File 'lib/platform-api/client.rb', line 897 def initialize(client) @client = client end |
Instance Method Details
#create(body) ⇒ Object
Create a new OAuth authorization.
904 905 906 |
# File 'lib/platform-api/client.rb', line 904 def create(body) @client..create(body) end |
#delete(oauth_authorization_id) ⇒ Object
Delete OAuth authorization.
911 912 913 |
# File 'lib/platform-api/client.rb', line 911 def delete() @client..delete() end |
#info(oauth_authorization_id) ⇒ Object
Info for an OAuth authorization.
918 919 920 |
# File 'lib/platform-api/client.rb', line 918 def info() @client..info() end |
#list ⇒ Object
List OAuth authorizations.
923 924 925 |
# File 'lib/platform-api/client.rb', line 923 def list() @client..list() end |