Class: Todoist::Sync

Inherits:
Struct
  • Object
show all
Defined in:
lib/todoist/sync.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collaborator_statesObject

Returns the value of attribute collaborator_states

Returns:

  • (Object)

    the current value of collaborator_states



2
3
4
# File 'lib/todoist/sync.rb', line 2

def collaborator_states
  @collaborator_states
end

#collaboratorsObject

Returns the value of attribute collaborators

Returns:

  • (Object)

    the current value of collaborators



2
3
4
# File 'lib/todoist/sync.rb', line 2

def collaborators
  @collaborators
end

#commentsObject

Returns the value of attribute comments

Returns:

  • (Object)

    the current value of comments



2
3
4
# File 'lib/todoist/sync.rb', line 2

def comments
  @comments
end

#completed_infoObject

Returns the value of attribute completed_info

Returns:

  • (Object)

    the current value of completed_info



2
3
4
# File 'lib/todoist/sync.rb', line 2

def completed_info
  @completed_info
end

#day_ordersObject

Returns the value of attribute day_orders

Returns:

  • (Object)

    the current value of day_orders



2
3
4
# File 'lib/todoist/sync.rb', line 2

def day_orders
  @day_orders
end

#day_orders_timestampObject

Returns the value of attribute day_orders_timestamp

Returns:

  • (Object)

    the current value of day_orders_timestamp



2
3
4
# File 'lib/todoist/sync.rb', line 2

def day_orders_timestamp
  @day_orders_timestamp
end

#due_exceptionsObject

Returns the value of attribute due_exceptions

Returns:

  • (Object)

    the current value of due_exceptions



2
3
4
# File 'lib/todoist/sync.rb', line 2

def due_exceptions
  @due_exceptions
end

#elapsedObject

Returns the value of attribute elapsed

Returns:

  • (Object)

    the current value of elapsed



2
3
4
# File 'lib/todoist/sync.rb', line 2

def elapsed
  @elapsed
end

#filtersObject

Returns the value of attribute filters

Returns:

  • (Object)

    the current value of filters



2
3
4
# File 'lib/todoist/sync.rb', line 2

def filters
  @filters
end

#full_syncObject

Returns the value of attribute full_sync

Returns:

  • (Object)

    the current value of full_sync



2
3
4
# File 'lib/todoist/sync.rb', line 2

def full_sync
  @full_sync
end

#incomplete_item_idsObject

Returns the value of attribute incomplete_item_ids

Returns:

  • (Object)

    the current value of incomplete_item_ids



2
3
4
# File 'lib/todoist/sync.rb', line 2

def incomplete_item_ids
  @incomplete_item_ids
end

#incomplete_project_idsObject

Returns the value of attribute incomplete_project_ids

Returns:

  • (Object)

    the current value of incomplete_project_ids



2
3
4
# File 'lib/todoist/sync.rb', line 2

def incomplete_project_ids
  @incomplete_project_ids
end

#itemsObject Also known as: tasks

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



2
3
4
# File 'lib/todoist/sync.rb', line 2

def items
  @items
end

#labelsObject

Returns the value of attribute labels

Returns:

  • (Object)

    the current value of labels



2
3
4
# File 'lib/todoist/sync.rb', line 2

def labels
  @labels
end

#live_notificationsObject

Returns the value of attribute live_notifications

Returns:

  • (Object)

    the current value of live_notifications



2
3
4
# File 'lib/todoist/sync.rb', line 2

def live_notifications
  @live_notifications
end

#live_notifications_last_read_idObject

Returns the value of attribute live_notifications_last_read_id

Returns:

  • (Object)

    the current value of 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

#locationsObject

Returns the value of attribute locations

Returns:

  • (Object)

    the current value of locations



2
3
4
# File 'lib/todoist/sync.rb', line 2

def locations
  @locations
end

#project_notesObject

Returns the value of attribute project_notes

Returns:

  • (Object)

    the current value of project_notes



2
3
4
# File 'lib/todoist/sync.rb', line 2

def project_notes
  @project_notes
end

#projectsObject

Returns the value of attribute projects

Returns:

  • (Object)

    the current value of projects



2
3
4
# File 'lib/todoist/sync.rb', line 2

def projects
  @projects
end

#remindersObject

Returns the value of attribute reminders

Returns:

  • (Object)

    the current value of reminders



2
3
4
# File 'lib/todoist/sync.rb', line 2

def reminders
  @reminders
end

#resource_typesObject

Returns the value of attribute resource_types

Returns:

  • (Object)

    the current value of resource_types



2
3
4
# File 'lib/todoist/sync.rb', line 2

def resource_types
  @resource_types
end

#sectionsObject

Returns the value of attribute sections

Returns:

  • (Object)

    the current value of sections



2
3
4
# File 'lib/todoist/sync.rb', line 2

def sections
  @sections
end

#statsObject

Returns the value of attribute stats

Returns:

  • (Object)

    the current value of stats



2
3
4
# File 'lib/todoist/sync.rb', line 2

def stats
  @stats
end

#sync_tokenObject

Returns the value of attribute sync_token

Returns:

  • (Object)

    the current value of sync_token



2
3
4
# File 'lib/todoist/sync.rb', line 2

def sync_token
  @sync_token
end

#temp_id_mappingObject

Returns the value of attribute temp_id_mapping

Returns:

  • (Object)

    the current value of temp_id_mapping



2
3
4
# File 'lib/todoist/sync.rb', line 2

def temp_id_mapping
  @temp_id_mapping
end

#tooltipsObject

Returns the value of attribute tooltips

Returns:

  • (Object)

    the current value of tooltips



2
3
4
# File 'lib/todoist/sync.rb', line 2

def tooltips
  @tooltips
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



2
3
4
# File 'lib/todoist/sync.rb', line 2

def user
  @user
end

#user_plan_limitsObject

Returns the value of attribute user_plan_limits

Returns:

  • (Object)

    the current value of user_plan_limits



2
3
4
# File 'lib/todoist/sync.rb', line 2

def user_plan_limits
  @user_plan_limits
end

#user_settingsObject

Returns the value of attribute user_settings

Returns:

  • (Object)

    the current value of user_settings



2
3
4
# File 'lib/todoist/sync.rb', line 2

def 
  @user_settings
end

#view_optionsObject

Returns the value of attribute view_options

Returns:

  • (Object)

    the current value of view_options



2
3
4
# File 'lib/todoist/sync.rb', line 2

def view_options
  @view_options
end

Instance Method Details

#inspObject



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

#versionObject



35
36
37
# File 'lib/todoist/sync.rb', line 35

def version
  :v9
end