Module: Closeio::Client::Task
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/task.rb
Instance Method Summary collapse
- #create_task(options = {}) ⇒ Object
- #delete_task(id) ⇒ Object
- #find_task(id) ⇒ Object
- #list_tasks(options = {}) ⇒ Object
- #update_task(id, options = {}) ⇒ Object
Instance Method Details
#create_task(options = {}) ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/task.rb', line 12 def create_task( = {}) post(task_path, ) 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( = {}) get(task_path, ) end |
#update_task(id, options = {}) ⇒ Object
16 17 18 |
# File 'lib/closeio/resources/task.rb', line 16 def update_task(id, = {}) put(task_path(id), ) end |