Class: Todoist::Sync
- Inherits:
-
Struct
- Object
- Struct
- Todoist::Sync
- Defined in:
- lib/todoist/sync.rb
Instance Attribute Summary collapse
-
#collaborator_states ⇒ Object
Returns the value of attribute collaborator_states.
-
#collaborators ⇒ Object
Returns the value of attribute collaborators.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#completed_info ⇒ Object
Returns the value of attribute completed_info.
-
#day_orders ⇒ Object
Returns the value of attribute day_orders.
-
#day_orders_timestamp ⇒ Object
Returns the value of attribute day_orders_timestamp.
-
#due_exceptions ⇒ Object
Returns the value of attribute due_exceptions.
-
#elapsed ⇒ Object
Returns the value of attribute elapsed.
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#full_sync ⇒ Object
Returns the value of attribute full_sync.
-
#incomplete_item_ids ⇒ Object
Returns the value of attribute incomplete_item_ids.
-
#incomplete_project_ids ⇒ Object
Returns the value of attribute incomplete_project_ids.
-
#items ⇒ Object
(also: #tasks)
Returns the value of attribute items.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#live_notifications ⇒ Object
Returns the value of attribute live_notifications.
-
#live_notifications_last_read_id ⇒ Object
Returns the value of attribute live_notifications_last_read_id.
-
#locations ⇒ Object
Returns the value of attribute locations.
-
#project_notes ⇒ Object
Returns the value of attribute project_notes.
-
#projects ⇒ Object
Returns the value of attribute projects.
-
#reminders ⇒ Object
Returns the value of attribute reminders.
-
#resource_types ⇒ Object
Returns the value of attribute resource_types.
-
#sections ⇒ Object
Returns the value of attribute sections.
-
#stats ⇒ Object
Returns the value of attribute stats.
-
#sync_token ⇒ Object
Returns the value of attribute sync_token.
-
#temp_id_mapping ⇒ Object
Returns the value of attribute temp_id_mapping.
-
#tooltips ⇒ Object
Returns the value of attribute tooltips.
-
#user ⇒ Object
Returns the value of attribute user.
-
#user_plan_limits ⇒ Object
Returns the value of attribute user_plan_limits.
-
#user_settings ⇒ Object
Returns the value of attribute user_settings.
-
#view_options ⇒ Object
Returns the value of attribute view_options.
Instance Method Summary collapse
Instance Attribute Details
#collaborator_states ⇒ Object
Returns the value of attribute collaborator_states
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def collaborator_states @collaborator_states end |
#collaborators ⇒ Object
Returns the value of attribute collaborators
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def collaborators @collaborators end |
#comments ⇒ Object
Returns the value of attribute comments
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def comments @comments end |
#completed_info ⇒ Object
Returns the value of attribute completed_info
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def completed_info @completed_info end |
#day_orders ⇒ Object
Returns the value of attribute day_orders
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def day_orders @day_orders end |
#day_orders_timestamp ⇒ Object
Returns the value of attribute day_orders_timestamp
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def @day_orders_timestamp end |
#due_exceptions ⇒ Object
Returns the value of attribute due_exceptions
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def due_exceptions @due_exceptions end |
#elapsed ⇒ Object
Returns the value of attribute elapsed
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def elapsed @elapsed end |
#filters ⇒ Object
Returns the value of attribute filters
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def filters @filters end |
#full_sync ⇒ Object
Returns the value of attribute full_sync
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def full_sync @full_sync end |
#incomplete_item_ids ⇒ Object
Returns the value of attribute incomplete_item_ids
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def incomplete_item_ids @incomplete_item_ids end |
#incomplete_project_ids ⇒ Object
Returns the value of attribute incomplete_project_ids
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def incomplete_project_ids @incomplete_project_ids end |
#items ⇒ Object Also known as: tasks
Returns the value of attribute items
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def items @items end |
#labels ⇒ Object
Returns the value of attribute labels
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def labels @labels end |
#live_notifications ⇒ Object
Returns the value of attribute live_notifications
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def live_notifications @live_notifications end |
#live_notifications_last_read_id ⇒ Object
Returns the value of attribute live_notifications_last_read_id
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def live_notifications_last_read_id @live_notifications_last_read_id end |
#locations ⇒ Object
Returns the value of attribute locations
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def locations @locations end |
#project_notes ⇒ Object
Returns the value of attribute project_notes
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def project_notes @project_notes end |
#projects ⇒ Object
Returns the value of attribute projects
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def projects @projects end |
#reminders ⇒ Object
Returns the value of attribute reminders
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def reminders @reminders end |
#resource_types ⇒ Object
Returns the value of attribute resource_types
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def resource_types @resource_types end |
#sections ⇒ Object
Returns the value of attribute sections
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def sections @sections end |
#stats ⇒ Object
Returns the value of attribute stats
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def stats @stats end |
#sync_token ⇒ Object
Returns the value of attribute sync_token
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def sync_token @sync_token end |
#temp_id_mapping ⇒ Object
Returns the value of attribute temp_id_mapping
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def temp_id_mapping @temp_id_mapping end |
#tooltips ⇒ Object
Returns the value of attribute tooltips
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def tooltips @tooltips end |
#user ⇒ Object
Returns the value of attribute user
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def user @user end |
#user_plan_limits ⇒ Object
Returns the value of attribute user_plan_limits
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def user_plan_limits @user_plan_limits end |
#user_settings ⇒ Object
Returns the value of attribute user_settings
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def user_settings @user_settings end |
#view_options ⇒ Object
Returns the value of attribute view_options
2 3 4 |
# File 'lib/todoist/sync.rb', line 2 def @view_options end |
Instance Method Details
#insp ⇒ Object
41 42 43 44 45 46 47 48 49 |
# File 'lib/todoist/sync.rb', line 41 def insp res = {} members.each do |mbr| val = send(mbr) val = ":count: #{val.count}" if val.is_a?(Array) res[mbr] = val end res end |
#version ⇒ Object
35 36 37 |
# File 'lib/todoist/sync.rb', line 35 def version :v9 end |