module BWAPI::Client::Projects::Queries::Mentions
Mentions
module for projects/queries/mentions endpoints
Public Instance Methods
Delete query mention
@param project_id [Integer] Id of project @param query_id [Integer] Id of query @param id [Integer] Id of mention @param opts [Hash] options hash of parameters @option opts [Integer] projectId Id of the project @option opts [Integer] queryId Id of the query @option opts [Integer] id Id of the mention @option opts [Hash] Map patch to be applied @return [Hash] Deleted query mention
# File lib/bwapi/client/projects/queries/mentions.rb, line 43 def delete_query_mention(project_id, query_id, id, opts = {}) delete "projects/#{project_id}/queries/#{query_id}/mentions/#{id}", opts end
Get the full text of query mention
@param project_id [Integer] Id of project @param query_id [Integer] Id of query @param id [Integer] Id of mention @return [Hash] Content of query mention
# File lib/bwapi/client/projects/queries/mentions.rb, line 13 def get_query_mention_content(project_id, query_id, id) get "projects/#{project_id}/queries/#{query_id}/mentions/#{id}/content" end
Update query mention
@param project_id [Integer] Id of project @param query_id [Integer] Id of query @param id [Integer] Id of mention @param opts [Hash] options hash of parameters @option opts [Integer] projectId Id of the project @option opts [Integer] queryId Id of the query @option opts [Integer] id Id of the mention @option opts [Hash] MentionPatchDTO patch to be applied @return [Hash] Updated query mention
# File lib/bwapi/client/projects/queries/mentions.rb, line 28 def update_query_mention(project_id, query_id, id, opts = {}) patch "projects/#{project_id}/queries/#{query_id}/mentions/#{id}", opts end