module BWAPI::Client::Projects::DittoQueries
DittoQueries
module for projects/dittoqueries endpoints
Public Instance Methods
create_ditto_query(project_id, opts = {})
click to toggle source
Create a ditto query in a project
@param project_id [Integer] Id of project @param opts [Hash] options hash of parameters @option opts [Integer] id Id of the query @option opts [String] name Name of the query @options opts [Integer] dittoBrandId The ditto brand id @return [Hash] New ditto query
# File lib/bwapi/client/projects/ditto_queries.rb, line 14 def create_ditto_query(project_id, opts = {}) post "projects/#{project_id}/dittoqueries", opts end
update_ditto_query(project_id, query_id, opts = {})
click to toggle source
Update an existing ditto query in a project
@param project_id [Integer] Id of project @param query_id [Integer] Id of query @param opts [Hash] options hash of parameters @option opts [Integer] id Id of the query @option opts [String] name Name of the query @options opts [Integer] dittoBrandId The ditto brand id @return [Hash] Updated ditto query
# File lib/bwapi/client/projects/ditto_queries.rb, line 27 def update_ditto_query(project_id, query_id, opts = {}) put "projects/#{project_id}/dittoqueries/#{query_id}", opts end