Module: BWAPI::Client::Projects::Queries
- Included in:
- BWAPI::Client::Projects
- Defined in:
- lib/bwapi/client/projects/queries.rb,
lib/bwapi/client/projects/queries/backfill.rb,
lib/bwapi/client/projects/queries/mentions.rb,
lib/bwapi/client/projects/queries/date_range.rb
Overview
Queries module for projects/queries endpoints
Defined Under Namespace
Modules: Backfill, DateRange, Mentions
Instance Method Summary collapse
-
#create_query(project_id, opts = {}) ⇒ Hashie::Mash
Create a new query in project.
-
#delete_query(project_id, query_id) ⇒ Hashie::Mash
Delete an existing query project.
-
#get_query(project_id, query_id) ⇒ Hashie::Mash
(also: #query)
Get a specific query in project.
-
#queries(project_id, opts = {}) ⇒ Hashie::Mash
Get all queries in project.
-
#queries_summary(project_id) ⇒ Hashie::Mash
Get summary of all queries in project.
-
#update_query(project_id, query_id, opts = {}) ⇒ Hashie::Mash
Update an existing query in project.
Methods included from Mentions
#delete_query_mention, #get_query_mention_content, #update_query_mention
Methods included from DateRange
#create_date_range, #date_range, #date_ranges, #delete_date_range, #update_date_range
Methods included from Backfill
#backfills, #create_backfill, #delete_backfill, #get_backfill
Instance Method Details
#create_query(project_id, opts = {}) ⇒ Hashie::Mash
Create a new query in project
61 62 63 |
# File 'lib/bwapi/client/projects/queries.rb', line 61 def create_query project_id, opts={} post "projects/#{project_id}/queries", opts end |
#delete_query(project_id, query_id) ⇒ Hashie::Mash
Delete an existing query project
94 95 96 |
# File 'lib/bwapi/client/projects/queries.rb', line 94 def delete_query project_id, query_id delete "projects/#{project_id}/queries/#{query_id}" end |
#get_query(project_id, query_id) ⇒ Hashie::Mash Also known as: query
Get a specific query in project
37 38 39 |
# File 'lib/bwapi/client/projects/queries.rb', line 37 def get_query project_id, query_id get "projects/#{project_id}/queries/#{query_id}" end |
#queries(project_id, opts = {}) ⇒ Hashie::Mash
Get all queries in project
20 21 22 |
# File 'lib/bwapi/client/projects/queries.rb', line 20 def queries project_id, opts={} get "projects/#{project_id}/queries", opts end |
#queries_summary(project_id) ⇒ Hashie::Mash
Get summary of all queries in project
28 29 30 |
# File 'lib/bwapi/client/projects/queries.rb', line 28 def queries_summary project_id get "projects/#{project_id}/queries/summary" end |
#update_query(project_id, query_id, opts = {}) ⇒ Hashie::Mash
Update an existing query in project
85 86 87 |
# File 'lib/bwapi/client/projects/queries.rb', line 85 def update_query project_id, query_id, opts={} put "projects/#{project_id}/queries/#{query_id}", opts end |