Module: Taskworld::Endpoints::Tasklist

Included in:
Taskworld::Endpoints
Defined in:
lib/taskworld/endpoints/tasklist.rb

Instance Method Summary collapse

Instance Method Details

#tasklist_create(space_id:, project_id:, title:, **options) ⇒ Object



4
5
6
# File 'lib/taskworld/endpoints/tasklist.rb', line 4

def tasklist_create(space_id:, project_id:, title:, **options)
  post('tasklist.create', options.merge(space_id: space_id, project_id: project_id, title: title))
end

#tasklist_delete(space_id:, list_id:, **options) ⇒ Object



25
26
27
# File 'lib/taskworld/endpoints/tasklist.rb', line 25

def tasklist_delete(space_id:, list_id:, **options)
  post('tasklist.delete', options.merge(space_id: space_id, list_id: list_id))
end

#tasklist_get_all(space_id:, project_id:, **options) ⇒ Object



8
9
10
# File 'lib/taskworld/endpoints/tasklist.rb', line 8

def tasklist_get_all(space_id:, project_id:, **options)
  post('tasklist.get-all', options.merge(space_id: space_id, project_id: project_id))
end

#tasklist_move_task(space_id:, project_id:, from_list_id:, to_list_id:, task_id:, **options) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/taskworld/endpoints/tasklist.rb', line 12

def tasklist_move_task(space_id:, project_id:, from_list_id:, to_list_id:, task_id:, **options)
  post('tasklist.move-task',
       options.merge(space_id: space_id,
                     project_id: project_id,
                     from_list_id: from_list_id,
                     to_list_id: to_list_id,
                     task_id: task_id))
end

#tasklist_update(space_id:, list_id:, title:, **options) ⇒ Object



21
22
23
# File 'lib/taskworld/endpoints/tasklist.rb', line 21

def tasklist_update(space_id:, list_id:, title:, **options)
  post('tasklist.update', options.merge(space_id: space_id, list_id: list_id, title: title))
end