Module: TenThousandFeet::API::Projects

Included in:
Client
Defined in:
lib/ten_thousand_feet/api/projects.rb

Instance Method Summary collapse

Instance Method Details

#create_project(options = {}) ⇒ Object



12
13
14
# File 'lib/ten_thousand_feet/api/projects.rb', line 12

def create_project(options = {})
  post('/projects', options)
end

#delete_project(id, options = {}) ⇒ Object



20
21
22
# File 'lib/ten_thousand_feet/api/projects.rb', line 20

def delete_project(id, options = {})
  delete("/projects/#{id}", options)
end

#get_project_time_entries(id, options = {}) ⇒ Object



24
25
26
# File 'lib/ten_thousand_feet/api/projects.rb', line 24

def get_project_time_entries(id, options = {})
  get("/projects/#{id}/time_entries", options)
end

#get_project_users(id, options = {}) ⇒ Object



28
29
30
# File 'lib/ten_thousand_feet/api/projects.rb', line 28

def get_project_users(id, options = {})
  get("/projects/#{id}/users", options)
end

#get_projects(options = {}) ⇒ Object



4
5
6
# File 'lib/ten_thousand_feet/api/projects.rb', line 4

def get_projects(options = {})
  get('/projects', options)
end

#show_project(id, options = {}) ⇒ Object



8
9
10
# File 'lib/ten_thousand_feet/api/projects.rb', line 8

def show_project(id, options = {})
  get("/projects/#{id}", options)
end

#update_project(id, options = {}) ⇒ Object



16
17
18
# File 'lib/ten_thousand_feet/api/projects.rb', line 16

def update_project(id, options = {})
  put("/projects/#{id}", options)
end