Module: BWAPI::Client::CommandCenter::Projects::CategoryColours
- Included in:
- BWAPI::Client::CommandCenter::Projects
- Defined in:
- lib/bwapi/client/command_center/projects/category_colours.rb
Overview
CategoryColours module for commandcenter/projects/project_id/categoryColours endpoints
Instance Method Summary collapse
-
#category_colour(project_id, category_id) ⇒ Object
Get colour defined for given category.
-
#category_colours(project_id) ⇒ Object
Get colours defined for categories in given project.
-
#create_category_colour(project_id, opts = {}) ⇒ Object
Define the colour for a category.
-
#delete_category_colour(project_id, category_id) ⇒ Object
Remove the colour for a category.
-
#update_category_colour(project_id, category_id, opts = {}) ⇒ Object
Update the colour for a category.
Instance Method Details
#category_colour(project_id, category_id) ⇒ Object
Get colour defined for given category
TODO: Add parameters documentation
17 18 19 |
# 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) ⇒ Object
Get colours defined for categories in given project
TODO: Add parameters documentation
10 11 12 |
# 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 = {}) ⇒ Object
Define the colour for a category
TODO: Add parameters documentation
24 25 26 |
# 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) ⇒ Object
Remove the colour for a category
TODO: Add parameters documentation
38 39 40 |
# 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 = {}) ⇒ Object
Update the colour for a category
TODO: Add parameters documentation
31 32 33 |
# 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 |