class Basecamp3::Forward
A model for Basecamp's Forward
{github.com/basecamp/bc3-api/blob/master/sections/forwards.md#forwards For more information, see the official Basecamp3
API documentation for Forwards}
Attributes
content[RW]
created_at[RW]
from[RW]
id[RW]
replies_count[RW]
status[RW]
subject[RW]
updated_at[RW]
Public Class Methods
all(bucket_id, parent_id, params = {})
click to toggle source
Returns a paginated list of active forwards.
@param [Integer] bucket_id the id of the bucket @param [Integer] parent_id the id of the inbox @param [Hash] params additional parameters @option params [Integer] :page (optional) to paginate results
@return [Array<Basecamp3::Forward>]
# 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
find(bucket_id, id)
click to toggle source
Returns the forward.
@param [Integer] bucket_id the id of the bucket @param [Integer] id the id of the forward
@return [Basecamp3::Forward]
# File lib/basecamp3/models/forward.rb, line 37 def self.find(bucket_id, id) Basecamp3.request.get("/buckets/#{bucket_id}/inbox_forwards/#{id}", {}, Basecamp3::Forward) end