Module: Basecamp3::Concerns::Commentable

Included in:
Document, Message, ScheduleEntry, Todo, TodoList
Defined in:
lib/basecamp3/concerns/commentable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#comments_countObject

Returns the value of attribute comments_count



5
6
7
# File 'lib/basecamp3/concerns/commentable.rb', line 5

def comments_count
  @comments_count
end

Instance Method Details

#commentsArray<Basecamp3::Comment>

Returns the related comments.

Returns:



10
11
12
# File 'lib/basecamp3/concerns/commentable.rb', line 10

def comments
  @mapped_comments ||= Basecamp3::Comment.all(bucket.id, id)
end