Module: Basecamp3::Concerns::Commentable
- Included in:
- Document, Message, ScheduleEntry, Todo, TodoList
- Defined in:
- lib/basecamp3/concerns/commentable.rb
Instance Attribute Summary collapse
-
#comments_count ⇒ Object
Returns the value of attribute comments_count.
Instance Method Summary collapse
-
#comments ⇒ Array<Basecamp3::Comment>
Returns the related comments.
Instance Attribute Details
#comments_count ⇒ Object
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
#comments ⇒ Array<Basecamp3::Comment>
Returns the related comments.
10 11 12 |
# File 'lib/basecamp3/concerns/commentable.rb', line 10 def comments @mapped_comments ||= Basecamp3::Comment.all(bucket.id, id) end |