Class: Todoist::Section
- Inherits:
-
Struct
- Object
- Struct
- Todoist::Section
- Defined in:
- lib/todoist/section.rb
Instance Attribute Summary collapse
-
#added_at ⇒ Object
Returns the value of attribute added_at.
-
#archived_at ⇒ Object
Returns the value of attribute archived_at.
-
#collapsed ⇒ Object
Returns the value of attribute collapsed.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_archived ⇒ Object
Returns the value of attribute is_archived.
-
#is_deleted ⇒ Object
Returns the value of attribute is_deleted.
-
#name ⇒ Object
Returns the value of attribute name.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#section_order ⇒ Object
(also: #order)
Returns the value of attribute section_order.
-
#sync_id ⇒ Object
Returns the value of attribute sync_id.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(*arg_hashes) ⇒ Section
constructor
A new instance of Section.
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_at ⇒ Object
Returns the value of attribute added_at
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def added_at @added_at end |
#archived_at ⇒ Object
Returns the value of attribute archived_at
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def archived_at @archived_at end |
#collapsed ⇒ Object
Returns the value of attribute collapsed
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def collapsed @collapsed end |
#id ⇒ Object
Returns the value of attribute id
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def id @id end |
#is_archived ⇒ Object
Returns the value of attribute is_archived
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def is_archived @is_archived end |
#is_deleted ⇒ Object
Returns the value of attribute is_deleted
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def is_deleted @is_deleted end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def name @name end |
#project_id ⇒ Object
Returns the value of attribute project_id
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def project_id @project_id end |
#section_order ⇒ Object Also known as: order
Returns the value of attribute section_order
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def section_order @section_order end |
#sync_id ⇒ Object
Returns the value of attribute sync_id
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def sync_id @sync_id end |
#user_id ⇒ Object
Returns the value of attribute user_id
2 3 4 |
# File 'lib/todoist/section.rb', line 2 def user_id @user_id end |