Module: BWAPI::Client::CommandCenter::Displays::Scenes
- Included in:
- BWAPI::Client::CommandCenter::Displays
- Defined in:
- lib/bwapi/client/command_center/displays/scenes.rb
Overview
Displays module for commandcenter/displays/scenes endpoints
Instance Method Summary collapse
-
#create_scene(display_id, opts = {}) ⇒ Hash
Create a new display scene.
-
#delete_scene(display_id, scene_id) ⇒ Hash
Delete an existing display scene.
-
#get_scene(display_id, scene_id) ⇒ Hash
Get an existing display scene.
-
#get_scene_with_sub_scenes(display_id, scene_id) ⇒ Hash
Get an existing display scene sub scenes.
-
#scenes(display_id) ⇒ Hash
Get the scenes for an existing display.
-
#update_scene(display_id, scene_id, opts = {}) ⇒ Hash
Update an existing display scene.
Instance Method Details
#create_scene(display_id, opts = {}) ⇒ Hash
Create a new display scene
48 49 50 |
# File 'lib/bwapi/client/command_center/displays/scenes.rb', line 48 def create_scene(display_id, opts = {}) post "commandcenter/displays/#{display_id}/scenes", opts end |
#delete_scene(display_id, scene_id) ⇒ Hash
Delete an existing display scene
76 77 78 |
# File 'lib/bwapi/client/command_center/displays/scenes.rb', line 76 def delete_scene(display_id, scene_id) delete "commandcenter/displays/#{display_id}/scenes/#{scene_id}" end |
#get_scene(display_id, scene_id) ⇒ Hash
Get an existing display scene
20 21 22 |
# File 'lib/bwapi/client/command_center/displays/scenes.rb', line 20 def get_scene(display_id, scene_id) get "commandcenter/displays/#{display_id}/scenes/#{scene_id}" end |
#get_scene_with_sub_scenes(display_id, scene_id) ⇒ Hash
Get an existing display scene sub scenes
29 30 31 |
# File 'lib/bwapi/client/command_center/displays/scenes.rb', line 29 def get_scene_with_sub_scenes(display_id, scene_id) get "commandcenter/displays/#{display_id}/scenes/#{scene_id}/subscenes" end |
#scenes(display_id) ⇒ Hash
Get the scenes for an existing display
11 12 13 |
# File 'lib/bwapi/client/command_center/displays/scenes.rb', line 11 def scenes(display_id) get "commandcenter/displays/#{display_id}/scenes" end |
#update_scene(display_id, scene_id, opts = {}) ⇒ Hash
Update an existing display scene
67 68 69 |
# File 'lib/bwapi/client/command_center/displays/scenes.rb', line 67 def update_scene(display_id, scene_id, opts = {}) put "commandcenter/displays/#{display_id}/scenes/#{scene_id}", opts end |