module BWAPI::Client::Projects::Rules::Copy

Backfill module for projects/rules/copy endpoint

Public Instance Methods

create_rule_copy(project_id, rule_id, opts = {}) click to toggle source

Copy a rule to another project

@param project_id [Integer] id The id of project @param rule_id [Integer] id The id of rule @param opts [Hash] options Hash of parameters @option opts [Integer] copyToProjectId the target project id @return [Hash] New rule created in project

# File lib/bwapi/client/projects/rules/copy.rb, line 14
def create_rule_copy(project_id, rule_id, opts = {})
  post "projects/#{project_id}/rules/#{rule_id}/copy", opts
end