module RollbarAPI::Client::Projects
Public Instance Methods
all_projects()
click to toggle source
# File lib/rollbar_api/client/projects.rb, line 6 def all_projects self.class.get('/projects').parsed_response end
create_project(name)
click to toggle source
# File lib/rollbar_api/client/projects.rb, line 14 def create_project(name) self.class.post('/projects', body: {name: name}).parsed_response end
delete_project(id)
click to toggle source
# File lib/rollbar_api/client/projects.rb, line 18 def delete_project(id) self.class.delete("/project/#{id}").parsed_response end
get_project(id)
click to toggle source
# File lib/rollbar_api/client/projects.rb, line 10 def get_project(id) self.class.get("/project/#{id}").parsed_response end
update_project_access_tokens(id, window_count, window_size)
click to toggle source
# File lib/rollbar_api/client/projects.rb, line 22 def update_project_access_tokens(id, window_count, window_size) self.class.patch("/project/#{id}/access_tokens", body: {rate_limit_window_count: window_count, rate_limit_window_size: window_size}).parsed_response end