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
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
44 45 46 |
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 44 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
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
29 30 31 |
# File 'lib/bwapi/client/projects/queries/mentions.rb', line 29 def update_query_mention(project_id, query_id, mention_id, opts = {}) patch "projects/#{project_id}/queries/#{query_id}/mentions/#{mention_id}", opts end |