module RollbarAPI::Client::Teams
Public Instance Methods
add_project_to_team(team_id, project_id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 26 def add_project_to_team(team_id, project_id) self.class.put("/team/#{team_id}/project/#{project_id}").parsed_response end
all_teams()
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 6 def all_teams self.class.get('/teams').parsed_response end
check_project_in_team(team_id, project_id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 22 def check_project_in_team(team_id, project_id) self.class.get("/team/#{team_id}/project/#{project_id}").parsed_response end
check_team_membership(team_id, user_id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 34 def check_team_membership(team_id, user_id) self.class.get("/team/#{team_id}/user/#{user_id}").parsed_response end
create_team(name, access_level = 'standard')
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 14 def create_team(name, access_level = 'standard') self.class.post('/teams', body: {name: name, access_level: access_level}).parsed_response end
delete_team(id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 18 def delete_team(id) self.class.delete("/team/#{id}").parsed_response end
get_team(id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 10 def get_team(id) self.class.get("/team/#{id}").parsed_response end
remove_project_from_team(team_id, project_id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 30 def remove_project_from_team(team_id, project_id) self.class.delete("/team/#{team_id}/project/#{project_id}").parsed_response end
remove_user_from_team(team_id, user_id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 42 def remove_user_from_team(team_id, user_id) self.class.delete("/team/#{team_id}/user/#{user_id}").parsed_response end
team_members(team_id)
click to toggle source
# File lib/rollbar_api/client/teams.rb, line 38 def team_members(team_id) self.class.get("/team/#{team_id}/users").parsed_response end