Class: Basecampx::TodoList
- Defined in:
- lib/basecampx/resources/todo_list.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#completed ⇒ Object
Returns the value of attribute completed.
-
#completed_count ⇒ Object
Returns the value of attribute completed_count.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#position ⇒ Object
Returns the value of attribute position.
-
#remaining_count ⇒ Object
Returns the value of attribute remaining_count.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.all ⇒ Object
GET /todolists.json shows active todolists for all projects.
-
.completed ⇒ Object
GET /todolists/completed.json shows completed todolists for all projects.
- .find(project_id, todolist_id) ⇒ Object
Instance Method Summary collapse
Methods inherited from Resource
#delete, #initialize, parse, #save, #update_attributes
Methods included from Relations
Constructor Details
This class inherits a constructor from Basecampx::Resource
Instance Attribute Details
#bucket ⇒ Object
Returns the value of attribute bucket.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def bucket @bucket end |
#completed ⇒ Object
Returns the value of attribute completed.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def completed @completed end |
#completed_count ⇒ Object
Returns the value of attribute completed_count.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def completed_count @completed_count end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def name @name end |
#position ⇒ Object
Returns the value of attribute position.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def position @position end |
#remaining_count ⇒ Object
Returns the value of attribute remaining_count.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def remaining_count @remaining_count end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def updated_at @updated_at end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/basecampx/resources/todo_list.rb', line 4 def url @url end |
Class Method Details
.all ⇒ Object
GET /todolists.json shows active todolists for all projects.
11 12 13 |
# File 'lib/basecampx/resources/todo_list.rb', line 11 def self.all self.parse Basecampx.request "todolists.json" end |
Instance Method Details
#todos ⇒ Object
24 25 26 |
# File 'lib/basecampx/resources/todo_list.rb', line 24 def todos assigned_todos end |