Class: BasecampAPI::Comment

Inherits:
Resource
  • Object
show all
Defined in:
lib/basecamp/basecamp.rb

Overview

Creating comments for multiple resources

Comments can be created for messages, milestones, and to-dos, identified by the post_id, milestone_id, and todo_item_id params respectively.

For example, to create a comment on the message with id #8675309:

c = Basecamp::Comment.new(:post_id => 8675309)
c.body = 'Great tune'
c.save # => true

Similarly, to create a comment on a milestone:

c = Basecamp::Comment.new(:milestone_id => 8473647)
c.body = 'Is this done yet?'
c.save # => true

Method Summary

Methods inherited from Resource

element_name, parent_resources, prefix, prefix_source