Class: PlatformAPI::OauthAuthorization

Inherits:
Object
  • Object
show all
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

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.oauth_authorization.create(body)
end

#delete(oauth_authorization_id) ⇒ Object

Delete OAuth authorization.



914
915
916
# File 'lib/platform-api/client.rb', line 914

def delete(oauth_authorization_id)
  @client.oauth_authorization.delete(oauth_authorization_id)
end

#info(oauth_authorization_id) ⇒ Object

Info for an OAuth authorization.



921
922
923
# File 'lib/platform-api/client.rb', line 921

def info(oauth_authorization_id)
  @client.oauth_authorization.info(oauth_authorization_id)
end

#listObject

List OAuth authorizations.



926
927
928
# File 'lib/platform-api/client.rb', line 926

def list()
  @client.oauth_authorization.list()
end