Class: Basecamp::Message
- Defined in:
- lib/basecamp.rb
Class Method Summary collapse
-
.archive(project_id, options = {}) ⇒ Object
Returns a summary of all messages in the given project (and category, if specified).
-
.recent(project_id, options = {}) ⇒ Object
Returns the most recent 25 messages in the given project (and category, if specified).
Instance Method Summary collapse
Methods inherited from Resource
element_name, parent_resources, prefix, #prefix_options, prefix_source
Class Method Details
.archive(project_id, options = {}) ⇒ Object
267 268 269 |
# File 'lib/basecamp.rb', line 267 def self.archive(project_id, = {}) find(:all, :params => .merge(:project_id => project_id), :from => :archive) end |
.recent(project_id, options = {}) ⇒ Object
256 257 258 |
# File 'lib/basecamp.rb', line 256 def self.recent(project_id, = {}) find(:all, :params => .merge(:project_id => project_id)) end |
Instance Method Details
#comments(options = {}) ⇒ Object
271 272 273 |
# File 'lib/basecamp.rb', line 271 def comments( = {}) @comments ||= Comment.find(:all, :params => .merge(:post_id => id)) end |