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

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

Instance Method Summary collapse

Instance Method Details

#delete_query_mention(project_id, query_id, mention_id, opts) ⇒ Hashie::Mash

Delete query mention

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



45
46
47
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 45

def delete_query_mention project_id, query_id, mention_id, opts
  delete "projects/#{project_id}/queries/#{query_id}/mentions/#{mention_id}", opts
end

#get_query_mention_content(project_id, query_id, mention_id) ⇒ Hashie::Mash Also known as: query_mention_content, mention_content

Get the full text 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, mention_id
  get "projects/#{project_id}/queries/#{query_id}/mentions/#{mention_id}/content"
end

#update_query_mention(project_id, query_id, mention_id, opts) ⇒ Hashie::Mash

Update query mention

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



30
31
32
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 30

def update_query_mention project_id, query_id, mention_id, opts
  patch "projects/#{project_id}/queries/#{query_id}/mentions/#{mention_id}", opts
end