Class: Basecamp3::Forward
- Includes:
- Concerns::Bucketable, Concerns::Creatorable, Concerns::Parentable, Concerns::Recordingable
- Defined in:
- lib/basecamp3/models/forward.rb
Overview
A model for Basecamp's Forward
For more information, see the official Basecamp3 API documentation for Forwards
Constant Summary
Constants inherited from Model
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#from ⇒ Object
Returns the value of attribute from.
-
#id ⇒ Object
Returns the value of attribute id.
-
#replies_count ⇒ Object
Returns the value of attribute replies_count.
-
#status ⇒ Object
Returns the value of attribute status.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.all(bucket_id, parent_id, params = {}) ⇒ Array<Basecamp3::Forward>
Returns a paginated list of active forwards.
-
.find(bucket_id, id) ⇒ Basecamp3::Forward
Returns the forward.
Methods included from Concerns::Recordingable
Methods included from Concerns::Parentable
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
#content ⇒ Object
Returns the value of attribute content
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def content @content end |
#created_at ⇒ Object
Returns the value of attribute created_at
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def created_at @created_at end |
#from ⇒ Object
Returns the value of attribute from
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def from @from end |
#id ⇒ Object
Returns the value of attribute id
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def id @id end |
#replies_count ⇒ Object
Returns the value of attribute replies_count
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def replies_count @replies_count end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def status @status end |
#subject ⇒ Object
Returns the value of attribute subject
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def subject @subject end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
10 11 12 |
# File 'lib/basecamp3/models/forward.rb', line 10 def updated_at @updated_at end |
Class Method Details
.all(bucket_id, parent_id, params = {}) ⇒ Array<Basecamp3::Forward>
Returns a paginated list of active forwards.
27 28 29 |
# File 'lib/basecamp3/models/forward.rb', line 27 def self.all(bucket_id, parent_id, params = {}) Basecamp3.request.get("/buckets/#{bucket_id}/inboxes/#{parent_id}/forwards", params, Basecamp3::Forward) end |