Class: LabClient::Todos
- Defined in:
- lib/labclient/todos/list.rb,
lib/labclient/todos/mark_done.rb,
lib/labclient/todos/mark_all_done.rb
Overview
Specifics
Constant Summary
Constants included from AccessLevel
AccessLevel::HUMAN_ACCESS_LEVELS, AccessLevel::MACHINE_ACCESS_LEVELS
Instance Attribute Summary
Attributes inherited from Common
Instance Method Summary collapse
-
#list(query = {}) ⇒ Object
List.
-
#mark_all_done ⇒ Object
Mark all as Done.
-
#mark_as_done(todo_id) ⇒ Object
Mark as Done.
Methods inherited from Common
#api_methods, #api_methods_help, #format_id, #format_query_id, #format_query_ids, #format_time?, #group_name, #help, #initialize, #inspect, #klass, #protected_query_access_level, #query_access_level, #query_format_time
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from AccessLevel
#human_access_level, #human_protected_access_level, #machine_access_level, #machine_protected_access_level
Constructor Details
This class inherits a constructor from LabClient::Common
Instance Method Details
#list(query = {}) ⇒ Object
List
32 33 34 |
# File 'lib/labclient/todos/list.rb', line 32 def list(query = {}) client.request(:get, 'todos', Todo, query) end |
#mark_all_done ⇒ Object
Mark all as Done
14 15 16 |
# File 'lib/labclient/todos/mark_all_done.rb', line 14 def mark_all_done client.request(:post, 'todos/mark_as_done') end |
#mark_as_done(todo_id) ⇒ Object
Mark as Done
25 26 27 |
# File 'lib/labclient/todos/mark_done.rb', line 25 def mark_as_done(todo_id) client.request(:post, "todos/#{todo_id}/mark_as_done", Todo) end |