Class: SemaphoreciApi::Team
- Inherits:
-
Object
- Object
- SemaphoreciApi::Team
- Defined in:
- lib/semaphoreci_api/client.rb
Overview
All aspects of team management
Instance Method Summary collapse
-
#create(org_username, body = {}) ⇒ Object
Create a new team.
-
#delete(team_id) ⇒ Object
Delete an existing team.
-
#info(team_id) ⇒ Object
Info for existing team.
-
#initialize(client) ⇒ Team
constructor
A new instance of Team.
-
#list(org_username) ⇒ Object
List existing teams for an org.
-
#update(team_id, body = {}) ⇒ Object
Update an existing team.
Constructor Details
#initialize(client) ⇒ Team
Returns a new instance of Team
138 139 140 |
# File 'lib/semaphoreci_api/client.rb', line 138 def initialize(client) @client = client end |
Instance Method Details
#create(org_username, body = {}) ⇒ Object
Create a new team.
146 147 148 |
# File 'lib/semaphoreci_api/client.rb', line 146 def create(org_username, body = {}) @client.team.create(org_username, body) end |
#delete(team_id) ⇒ Object
Delete an existing team.
153 154 155 |
# File 'lib/semaphoreci_api/client.rb', line 153 def delete(team_id) @client.team.delete(team_id) end |
#info(team_id) ⇒ Object
Info for existing team.
160 161 162 |
# File 'lib/semaphoreci_api/client.rb', line 160 def info(team_id) @client.team.info(team_id) end |
#list(org_username) ⇒ Object
List existing teams for an org.
167 168 169 |
# File 'lib/semaphoreci_api/client.rb', line 167 def list(org_username) @client.team.list(org_username) end |
#update(team_id, body = {}) ⇒ Object
Update an existing team.
175 176 177 |
# File 'lib/semaphoreci_api/client.rb', line 175 def update(team_id, body = {}) @client.team.update(team_id, body) end |