Module: Taskworld::Endpoints::Task

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

Instance Method Summary collapse

Instance Method Details

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



4
5
6
7
8
9
10
# File 'lib/taskworld/endpoints/task.rb', line 4

def task_create(space_id:, project_id:, list_id:, title:, **options)
  post('task.create',
       options.merge(space_id: space_id,
                     project_id: project_id,
                     list_id: list_id,
                     title: title))
end

#task_delete(space_id:, task_id:, **options) ⇒ Object



20
21
22
# File 'lib/taskworld/endpoints/task.rb', line 20

def task_delete(space_id:, task_id:, **options)
  post('task.delete', options.merge(space_id: space_id, task_id: task_id))
end

#task_get(space_id:, task_id:, **options) ⇒ Object



12
13
14
# File 'lib/taskworld/endpoints/task.rb', line 12

def task_get(space_id:, task_id:, **options)
  post('task.get', options.merge(space_id: space_id, task_id: task_id))
end

#task_update(space_id:, task_id:, **options) ⇒ Object



16
17
18
# File 'lib/taskworld/endpoints/task.rb', line 16

def task_update(space_id:, task_id:, **options)
  post('task.update', options.merge(space_id: space_id, task_id: task_id))
end