Module: BWAPI::Client::CommandCenter::Projects::TagColours
- Included in:
- BWAPI::Client::CommandCenter::Projects
- Defined in:
- lib/bwapi/client/command_center/projects/tag_colours.rb
Overview
TagColours module for commandcenter/projects/project_id/tagColours endpoints
Instance Method Summary collapse
-
#create_tag_colour(project_id, opts = {}) ⇒ Object
Define the colour for a tag.
-
#delete_tag_colour(project_id, tag_name) ⇒ Object
Remove the colour for a tag.
-
#tag_colour(project_id, tag_name) ⇒ Object
Get colour defined for given tag.
-
#tag_colours(project_id) ⇒ Object
Get colours defined for tags in given project.
-
#update_tag_colour(project_id, tag_name, opts = {}) ⇒ Object
Update the colour for a tag.
Instance Method Details
#create_tag_colour(project_id, opts = {}) ⇒ Object
Define the colour for a tag
TODO: Add parameters documentation
24 25 26 |
# 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) ⇒ Object
Remove the colour for a tag
TODO: Add parameters documentation
38 39 40 |
# 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) ⇒ Object
Get colour defined for given tag
TODO: Add parameters documentation
17 18 19 |
# 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) ⇒ Object
Get colours defined for tags in given project
TODO: Add parameters documentation
10 11 12 |
# 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 = {}) ⇒ Object
Update the colour for a tag
TODO: Add parameters documentation
31 32 33 |
# 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 |