Module: BWAPI::Client::CommandCenter::QueryColours
- Included in:
- BWAPI::Client::CommandCenter
- Defined in:
- lib/bwapi/client/command_center/query_colours.rb
Overview
QueryColours module for commandcenter/queryColours endpoints
Instance Method Summary collapse
-
#create_query_colour(opts = {}) ⇒ Object
Define the colour for a query.
-
#delete_query_colour(query_id) ⇒ Object
Get colours defined for queries in current client.
-
#query_colours ⇒ Object
Get colours defined for queries in current client.
-
#update_query_colour(query_id, opts = {}) ⇒ Object
Get colours defined for queries in current client.
Instance Method Details
#create_query_colour(opts = {}) ⇒ Object
Define the colour for a query
TODO: Add parameters documentation
16 17 18 |
# File 'lib/bwapi/client/command_center/query_colours.rb', line 16 def create_query_colour(opts = {}) post 'commandcenter/queryColours', opts end |
#delete_query_colour(query_id) ⇒ Object
Get colours defined for queries in current client
TODO: Add parameters documentation
30 31 32 |
# File 'lib/bwapi/client/command_center/query_colours.rb', line 30 def delete_query_colour(query_id) delete "/commandcenter/queryColours/#{query_id}" end |
#query_colours ⇒ Object
Get colours defined for queries in current client
TODO: Add parameters documentation
9 10 11 |
# File 'lib/bwapi/client/command_center/query_colours.rb', line 9 def query_colours get 'commandcenter/queryColours' end |
#update_query_colour(query_id, opts = {}) ⇒ Object
Get colours defined for queries in current client
TODO: Add parameters documentation
23 24 25 |
# File 'lib/bwapi/client/command_center/query_colours.rb', line 23 def update_query_colour(query_id, opts = {}) put "/commandcenter/queryColours/#{query_id}", opts end |