Method: Box::File#add_comment

Defined in:
lib/box/file.rb

#add_comment(message) ⇒ Comment

Add a comment to the file.

Returns:

  • (Comment)

    The created comment.



57
58
59
60
61
# File 'lib/box/file.rb', line 57

def add_comment(message)
  response = @api.add_comment(type, id, message)

  Comment.create(@api, response['comment']).first
end