class Basecamp3::TodoSet
A model for Basecamp's TODO Set
{github.com/basecamp/bc3-api/blob/master/sections/todosets.md#to-do-sets For more information, see the official Basecamp3
API documentation for TODO sets}
Attributes
completed[RW]
completed_ratio[RW]
created_at[RW]
id[RW]
name[RW]
status[RW]
todolists_count[RW]
updated_at[RW]
Public Class Methods
find(bucket_id, id)
click to toggle source
Returns the TODO set.
@param [Integer] bucket_id the id of the bucket @param [Integer] id the id of the TODO set
@return [Basecamp3::TodoSet]
# File lib/basecamp3/models/todo_set.rb, line 30 def self.find(bucket_id, id) Basecamp3.request.get("/buckets/#{bucket_id}/todosets/#{id}", {}, Basecamp3::TodoSet) end
Public Instance Methods
todo_lists()
click to toggle source
Returns a list of related todo lists.
@return [Array<Basecamp3::TodoList>]
# File lib/basecamp3/models/todo_set.rb, line 20 def todo_lists @mapped_todo_lists ||= Basecamp3::TodoList.all(bucket.id, id) end