class Basecamp3::Inbox
A model for Basecamp's Inbox
{github.com/basecamp/bc3-api/blob/master/sections/inboxes.md#inboxes For more information, see the official Basecamp3
API documentation for Inboxes}
Attributes
created_at[RW]
forwards_count[RW]
id[RW]
status[RW]
title[RW]
updated_at[RW]
Public Class Methods
find(bucket_id, id)
click to toggle source
Returns the inbox.
@param [Integer] bucket_id the id of the bucket @param [Integer] id the id of the inbox
@return [Basecamp3::Inbox]
# File lib/basecamp3/models/inbox.rb, line 28 def self.find(bucket_id, id) Basecamp3.request.get("/buckets/#{bucket_id}/inboxes/#{id}", {}, Basecamp3::Inbox) end
Public Instance Methods
forwards()
click to toggle source
Returns a list of related forwards.
@return [Array<Basecamp3::Forward>]
# File lib/basecamp3/models/inbox.rb, line 18 def forwards @mapped_forwards ||= Basecamp3::Forward.all(bucket.id, id) end