module BWAPI::Client::CommandCenter::Projects::CategoryColours
CategoryColours
module for commandcenter/projects/{project_id}/categoryColours endpoints
Public Instance Methods
category_colour(project_id, category_id)
click to toggle source
Get colour defined for given category
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/category_colours.rb, line 17 def category_colour(project_id, category_id) get "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}" end
category_colours(project_id)
click to toggle source
Get colours defined for categories in given project
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/category_colours.rb, line 10 def category_colours(project_id) get "/commandcenter/projects/#{project_id}/categoryColours" end
create_category_colour(project_id, opts = {})
click to toggle source
Define the colour for a category
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/category_colours.rb, line 24 def create_category_colour(project_id, opts = {}) post "/commandcenter/projects/#{project_id}/categoryColours", opts end
delete_category_colour(project_id, category_id)
click to toggle source
Remove the colour for a category
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/category_colours.rb, line 38 def delete_category_colour(project_id, category_id) delete "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}" end
update_category_colour(project_id, category_id, opts = {})
click to toggle source
Update the colour for a category
TODO: Add parameters documentation
# File lib/bwapi/client/command_center/projects/category_colours.rb, line 31 def update_category_colour(project_id, category_id, opts = {}) put "/commandcenter/projects/#{project_id}/categoryColours/#{category_id}", opts end