Module: BWAPI::Client::Projects::Queries::Mentions

Included in:
BWAPI::Client::Projects::Queries
Defined in:
lib/bwapi/client/projects/queries/mentions.rb

Overview

Mentions module for projects/queries/mentions endpoints

Instance Method Summary collapse

Instance Method Details

#delete_query_mention(project_id, query_id, id, opts = {}) ⇒ Hash

Delete query mention

Parameters:

  • project_id (Integer)

    Id of project

  • query_id (Integer)

    Id of query

  • id (Integer)

    Id of mention

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • projectId (Integer)

    Id of the project

  • queryId (Integer)

    Id of the query

  • id (Integer)

    Id of the mention

  • Map (Hash)

    patch to be applied

Returns:

  • (Hash)

    Deleted query mention



43
44
45
# 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_query_mention_content(project_id, query_id, id) ⇒ Hash

Get the full text of query mention

Parameters:

  • project_id (Integer)

    Id of project

  • query_id (Integer)

    Id of query

  • id (Integer)

    Id of mention

Returns:

  • (Hash)

    Content of query mention



13
14
15
# 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(project_id, query_id, id, opts = {}) ⇒ Hash

Update query mention

Parameters:

  • project_id (Integer)

    Id of project

  • query_id (Integer)

    Id of query

  • id (Integer)

    Id of mention

  • opts (Hash) (defaults to: {})

    options hash of parameters

Options Hash (opts):

  • projectId (Integer)

    Id of the project

  • queryId (Integer)

    Id of the query

  • id (Integer)

    Id of the mention

  • MentionPatchDTO (Hash)

    patch to be applied

Returns:

  • (Hash)

    Updated query mention



28
29
30
# 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