lib/tracker_api/resources/story.rb in tracker_api-1.4.1 vs lib/tracker_api/resources/story.rb in tracker_api-1.5.0
- old
+ new
@@ -125,9 +125,15 @@
# @return [Task] newly created Task
def create_task(params)
Endpoints::Task.new(client).create(project_id, id, params)
end
+ # @param [Hash] params attributes to create the comment with
+ # @return [Comment] newly created Comment
+ def create_comment(params)
+ Endpoints::Comment.new(client).create(project_id, id, params)
+ end
+
# Save changes to an existing Story.
def save
raise ArgumentError, 'Can not update a story with an unknown project_id.' if project_id.nil?
Endpoints::Story.new(client).update(self, UpdateRepresenter.new(Story.new(self.dirty_attributes)))