Class: Basecamp3::MessageBoard
- Includes:
- Concerns::Bucketable, Concerns::Creatorable
- Defined in:
- lib/basecamp3/models/message_board.rb
Overview
A model for Basecamp's Message Board
For more information, see the official Basecamp3 API documentation for Message boards
Constant Summary
Constants inherited from Model
Basecamp3::Model::REQUIRED_FIELDS
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#messages_count ⇒ Object
Returns the value of attribute messages_count.
-
#status ⇒ Object
Returns the value of attribute status.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.find(bucket_id, id) ⇒ Basecamp3::MessageBoard
Returns the message board.
Instance Method Summary collapse
-
#messages ⇒ Array<Basecamp3::Message>
Returns a list of related messages.
Methods included from Concerns::Bucketable
Methods included from 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/message_board.rb', line 8 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/basecamp3/models/message_board.rb', line 8 def id @id end |
#messages_count ⇒ Object
Returns the value of attribute messages_count
8 9 10 |
# File 'lib/basecamp3/models/message_board.rb', line 8 def @messages_count end |
#status ⇒ Object
Returns the value of attribute status
8 9 10 |
# File 'lib/basecamp3/models/message_board.rb', line 8 def status @status end |
#title ⇒ Object
Returns the value of attribute title
8 9 10 |
# File 'lib/basecamp3/models/message_board.rb', line 8 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
8 9 10 |
# File 'lib/basecamp3/models/message_board.rb', line 8 def updated_at @updated_at end |
Class Method Details
.find(bucket_id, id) ⇒ Basecamp3::MessageBoard
Returns the message board.
28 29 30 |
# File 'lib/basecamp3/models/message_board.rb', line 28 def self.find(bucket_id, id) Basecamp3.request.get("/buckets/#{bucket_id}/message_boards/#{id}", {}, Basecamp3::MessageBoard) end |
Instance Method Details
#messages ⇒ Array<Basecamp3::Message>
Returns a list of related messages.
18 19 20 |
# File 'lib/basecamp3/models/message_board.rb', line 18 def @mapped_messages ||= Basecamp3::Message.all(bucket.id, id) end |