module Frontapp::Client::Comments

Public Instance Methods

create_comment!(conversation_id, params = {}) click to toggle source

Parameters Name Type Description


conversation_id string Id of the requested conversation


Allowed attributes: Name Type Description


author_id string Id of the teammate creating the comment body string Content of the comment


# File lib/frontapp/client/comments.rb, line 17
def create_comment!(conversation_id, params = {})
  cleaned = params.permit(:author_id, :body)
  create("conversations/#{conversation_id}/comments", cleaned)
end
get_comment(comment_id) click to toggle source

Parameters Name Type Description


comment_id string Id of the requested comment


# File lib/frontapp/client/comments.rb, line 36
def get_comment(comment_id)
  get("comments/#{comment_id}")
end
get_comment_mentions(comment_id) click to toggle source

Parameters Name Type Description


comment_id string Id of the requested comment


# File lib/frontapp/client/comments.rb, line 45
def get_comment_mentions(comment_id)
  get("comments/#{comment_id}/mentions")
end
get_conversation_comments(conversation_id) click to toggle source

Parameters Name Type Description


conversation_id string Id of the requested conversation


# File lib/frontapp/client/comments.rb, line 27
def get_conversation_comments(conversation_id)
  list("conversations/#{conversation_id}/comments")
end