Class: Todoist::Section

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*arg_hashes) ⇒ Section

Returns a new instance of Section.



5
6
7
8
9
10
11
12
# File 'lib/todoist/section.rb', line 5

def initialize(*arg_hashes)
  arg_hashes.each do |args|
    if args.key?("order")
      args[:section_order] = args.delete("order")
    end
  end
  super
end

Instance Attribute Details

#added_atObject

Returns the value of attribute added_at

Returns:

  • (Object)

    the current value of added_at



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

def added_at
  @added_at
end

#archived_atObject

Returns the value of attribute archived_at

Returns:

  • (Object)

    the current value of archived_at



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

def archived_at
  @archived_at
end

#collapsedObject

Returns the value of attribute collapsed

Returns:

  • (Object)

    the current value of collapsed



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

def collapsed
  @collapsed
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#is_archivedObject

Returns the value of attribute is_archived

Returns:

  • (Object)

    the current value of is_archived



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

def is_archived
  @is_archived
end

#is_deletedObject

Returns the value of attribute is_deleted

Returns:

  • (Object)

    the current value of is_deleted



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

def is_deleted
  @is_deleted
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#project_idObject

Returns the value of attribute project_id

Returns:

  • (Object)

    the current value of project_id



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

def project_id
  @project_id
end

#section_orderObject Also known as: order

Returns the value of attribute section_order

Returns:

  • (Object)

    the current value of section_order



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

def section_order
  @section_order
end

#sync_idObject

Returns the value of attribute sync_id

Returns:

  • (Object)

    the current value of sync_id



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

def sync_id
  @sync_id
end

#user_idObject

Returns the value of attribute user_id

Returns:

  • (Object)

    the current value of user_id



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

def user_id
  @user_id
end