Module: Closeio::Client::Task

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/task.rb

Instance Method Summary collapse

Instance Method Details

#create_task(options = {}) ⇒ Object



12
13
14
# File 'lib/closeio/resources/task.rb', line 12

def create_task(options = {})
  post(task_path, options)
end

#delete_task(id) ⇒ Object



20
21
22
# File 'lib/closeio/resources/task.rb', line 20

def delete_task(id)
  delete(task_path(id))
end

#find_task(id) ⇒ Object



8
9
10
# File 'lib/closeio/resources/task.rb', line 8

def find_task(id)
  get(task_path(id))
end

#list_tasks(options = {}) ⇒ Object



4
5
6
# File 'lib/closeio/resources/task.rb', line 4

def list_tasks(options = {})
  get(task_path, options)
end

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



16
17
18
# File 'lib/closeio/resources/task.rb', line 16

def update_task(id, options = {})
  put(task_path(id), options)
end