Module: Taskworld::Endpoints::Project

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

Instance Method Summary collapse

Instance Method Details

#project_create(space_id:, title:, **options) ⇒ Object



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

def project_create(space_id:, title:, **options)
  post('project.create', options.merge(space_id: space_id, title: title))
end

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



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

def project_delete(space_id:, project_id:, **options)
  post('project.delete', options.merge(space_id: space_id, project_id: project_id))
end

#project_get_all(space_id:, **options) ⇒ Object



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

def project_get_all(space_id:, **options)
  post('project.get-all', options.tap { |o| o.store(:space_id, space_id) })
end

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



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

def project_update(space_id:, project_id:, **options)
  post('project.update', options.merge(space_id: space_id, project_id: project_id))
end