module BWAPI::Client::CommandCenter::Projects::TagColours
TagColours
module for commandcenter/projects/{project_id}/tagColours endpoints
Public Instance Methods
create_tag_colour(project_id, opts = {})
click to toggle source
Define the colour for a tag
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/tag_colours.rb, line 24 def create_tag_colour(project_id, opts = {}) post "/commandcenter/projects/#{project_id}/tagColours", opts end
delete_tag_colour(project_id, tag_name)
click to toggle source
Remove the colour for a tag
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/tag_colours.rb, line 38 def delete_tag_colour(project_id, tag_name) delete "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}" end
tag_colour(project_id, tag_name)
click to toggle source
Get colour defined for given tag
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/tag_colours.rb, line 17 def tag_colour(project_id, tag_name) get "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}" end
tag_colours(project_id)
click to toggle source
Get colours defined for tags in given project
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/tag_colours.rb, line 10 def tag_colours(project_id) get "/commandcenter/projects/#{project_id}/tagColours" end
update_tag_colour(project_id, tag_name, opts = {})
click to toggle source
Update the colour for a tag
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/tag_colours.rb, line 31 def update_tag_colour(project_id, tag_name, opts = {}) put "/commandcenter/projects/#{project_id}/tagColours/#{tag_name}", opts end