Class: Basecamp3::TodoSet
- Includes:
- Concerns::Bucketable, Concerns::Creatorable
- Defined in:
- lib/basecamp3/models/todo_set.rb
Overview
A model for Basecamp's TODO Set
For more information, see the official Basecamp3 API documentation for TODO sets
Constant Summary
Constants inherited from Model
Instance Attribute Summary collapse
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#completed_ratio ⇒ Object
Returns the value of attribute completed_ratio.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#todolists_count ⇒ Object
Returns the value of attribute todolists_count.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.find(bucket_id, id) ⇒ Basecamp3::TodoSet
Returns the TODO set.
Instance Method Summary collapse
-
#todo_lists ⇒ Array<Basecamp3::TodoList>
Returns a list of related todo lists.
Methods included from Concerns::Bucketable
Methods included from Concerns::Creatorable
Methods inherited from Model
Constructor Details
This class inherits a constructor from Basecamp3::Model
Instance Attribute Details
#completed ⇒ Object
Returns the value of attribute completed
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def completed @completed end |
#completed_ratio ⇒ Object
Returns the value of attribute completed_ratio
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def completed_ratio @completed_ratio end |
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def id @id end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def name @name end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def status @status end |
#todolists_count ⇒ Object
Returns the value of attribute todolists_count
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def todolists_count @todolists_count end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
8 9 10 |
# File 'lib/basecamp3/models/todo_set.rb', line 8 def updated_at @updated_at end |
Class Method Details
Instance Method Details
#todo_lists ⇒ Array<Basecamp3::TodoList>
Returns a list of related todo lists.
20 21 22 |
# File 'lib/basecamp3/models/todo_set.rb', line 20 def todo_lists @mapped_todo_lists ||= Basecamp3::TodoList.all(bucket.id, id) end |