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
40 41 42 |
# File 'lib/gitlab/client/todos.rb', line 40 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.
30 31 32 |
# File 'lib/gitlab/client/todos.rb', line 30 def mark_todo_as_done(id) post("/todos/#{id}/mark_as_done") end |
#todos(options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of todos.
19 20 21 |
# File 'lib/gitlab/client/todos.rb', line 19 def todos(={}) get("/todos", query: ) end |