Class: Basecamp3::Campfire
- Defined in:
- lib/basecamp3/models/campfire.rb
Overview
A model for Basecamp's Campfire
For more information, see the official Basecamp3 API documentation for Campfires
Constant Summary
- REQUIRED_FIELDS =
%w(topic)
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#topic ⇒ Object
Returns the value of attribute topic.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.all(params = {}) ⇒ Array<Basecamp3::Campfire>
Returns a paginated list of all active campfires visible to the current user.
-
.find(bucket_id, id) ⇒ Basecamp3::Campfire
Returns the campfire.
Instance Method Summary collapse
-
#lines ⇒ Array<Basecamp3::CampfireLine>
Returns a list of related lines.
Methods included from Basecamp3::Concerns::Bucketable
Methods included from Basecamp3::Concerns::Creatorable
Methods inherited from Model
Constructor Details
This class inherits a constructor from Basecamp3::Model
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/basecamp3/models/campfire.rb', line 8 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/basecamp3/models/campfire.rb', line 8 def id @id end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/basecamp3/models/campfire.rb', line 8 def status @status end |
#topic ⇒ Object
Returns the value of attribute topic
8 9 10 |
# File 'lib/basecamp3/models/campfire.rb', line 8 def topic @topic end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
8 9 10 |
# File 'lib/basecamp3/models/campfire.rb', line 8 def updated_at @updated_at end |
Class Method Details
Instance Method Details
#lines ⇒ Array<Basecamp3::CampfireLine>
Returns a list of related lines.
19 20 21 |
# File 'lib/basecamp3/models/campfire.rb', line 19 def lines @mapped_lines ||= Basecamp3::CampfireLine.all(bucket.id, id) end |