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
-
#delete_query_mention(project_id, query_id, mention_id, opts) ⇒ Hashie::Mash
Delete query mention.
-
#get_query_mention_content(project_id, query_id, mention_id) ⇒ Hashie::Mash
(also: #query_mention_content, #mention_content)
Get the full text of query mention.
-
#update_query_mention(project_id, query_id, mention_id, opts) ⇒ Hashie::Mash
Update query mention.
Instance Method Details
#delete_query_mention(project_id, query_id, mention_id, opts) ⇒ Hashie::Mash
Delete query mention
46 47 48 |
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 46 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
14 15 16 |
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 14 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
31 32 33 |
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 31 def update_query_mention project_id, query_id, mention_id, opts patch "projects/#{project_id}/queries/#{query_id}/mentions/#{mention_id}", opts end |