Module: Gitlab::Client::Todos
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/todos.rb
Overview
Defines methods related to todos
Instance Method Summary collapse
-
#mark_all_todos_as_done ⇒ void
Marks all todos for the current user as done.
-
#mark_todo_as_done(id) ⇒ Gitlab::ObjectifiedHash
Marks a single pending todo for the current user as done.
-
#todos(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of todos.
Instance Method Details
#mark_all_todos_as_done ⇒ void
This method returns an undefined value.
Marks all todos for the current user as done
42 43 44 |
# File 'lib/gitlab/client/todos.rb', line 42 def mark_all_todos_as_done post('/todos/mark_as_done') end |
#mark_todo_as_done(id) ⇒ Gitlab::ObjectifiedHash
Marks a single pending todo for the current user as done.
32 33 34 |
# File 'lib/gitlab/client/todos.rb', line 32 def mark_todo_as_done(id) post("/todos/#{id}/mark_as_done") end |
#todos(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of todos.
21 22 23 |
# File 'lib/gitlab/client/todos.rb', line 21 def todos( = {}) get('/todos', query: ) end |