Module: StatRaptor::Client::Projects

Included in:
StatRaptor::Client
Defined in:
lib/statraptor/client/projects.rb

Instance Method Summary collapse

Instance Method Details

#create_project(params = {}) ⇒ Object



4
5
6
# File 'lib/statraptor/client/projects.rb', line 4

def create_project(params = {})
  post("/api/v1/projects", params)
end

#delete_project(params = {}) ⇒ Object



8
9
10
# File 'lib/statraptor/client/projects.rb', line 8

def delete_project(params = {})
  delete("/api/v1/projects/#{params[:subdomain]}", :user_credentials => params[:user_credentials])
end