Class: PlatformAPI::Collaborator
- Inherits:
-
Object
- Object
- PlatformAPI::Collaborator
- Defined in:
- lib/platform-api/client.rb
Overview
A collaborator represents an account that has been given access to an app on Heroku.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new collaborator.
-
#delete(app_id_or_app_name, collaborator_email_or_collaborator_id) ⇒ Object
Delete an existing collaborator.
-
#info(app_id_or_app_name, collaborator_email_or_collaborator_id) ⇒ Object
Info for existing collaborator.
-
#initialize(client) ⇒ Collaborator
constructor
A new instance of Collaborator.
-
#list(app_id_or_app_name) ⇒ Object
List existing collaborators.
Constructor Details
#initialize(client) ⇒ Collaborator
Returns a new instance of Collaborator.
1029 1030 1031 |
# File 'lib/platform-api/client.rb', line 1029 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body = {}) ⇒ Object
Create a new collaborator.
1037 1038 1039 |
# File 'lib/platform-api/client.rb', line 1037 def create(app_id_or_app_name, body = {}) @client.collaborator.create(app_id_or_app_name, body) end |
#delete(app_id_or_app_name, collaborator_email_or_collaborator_id) ⇒ Object
Delete an existing collaborator.
1045 1046 1047 |
# File 'lib/platform-api/client.rb', line 1045 def delete(app_id_or_app_name, collaborator_email_or_collaborator_id) @client.collaborator.delete(app_id_or_app_name, collaborator_email_or_collaborator_id) end |
#info(app_id_or_app_name, collaborator_email_or_collaborator_id) ⇒ Object
Info for existing collaborator.
1053 1054 1055 |
# File 'lib/platform-api/client.rb', line 1053 def info(app_id_or_app_name, collaborator_email_or_collaborator_id) @client.collaborator.info(app_id_or_app_name, collaborator_email_or_collaborator_id) end |
#list(app_id_or_app_name) ⇒ Object
List existing collaborators.
1060 1061 1062 |
# File 'lib/platform-api/client.rb', line 1060 def list(app_id_or_app_name) @client.collaborator.list(app_id_or_app_name) end |