Class: MusicCast::SetPower
Instance Method Summary collapse
- #disable_auto_standby ⇒ Object
- #enable_auto_standby ⇒ Object
- #on ⇒ Object
- #standby ⇒ Object (also: #off)
- #toggle ⇒ Object
Methods inherited from API
Instance Method Details
#disable_auto_standby ⇒ Object
21 22 23 |
# File 'lib/music_cast/api/set_power.rb', line 21 def disable_auto_standby make_request('system/setAutoPowerStandby?enable=false') end |
#enable_auto_standby ⇒ Object
17 18 19 |
# File 'lib/music_cast/api/set_power.rb', line 17 def enable_auto_standby make_request('system/setAutoPowerStandby?enable=true') end |
#on ⇒ Object
3 4 5 |
# File 'lib/music_cast/api/set_power.rb', line 3 def on make_request('main/setPower?power=on') end |
#standby ⇒ Object Also known as: off
7 8 9 |
# File 'lib/music_cast/api/set_power.rb', line 7 def standby make_request('main/setPower?power=standby') end |
#toggle ⇒ Object
13 14 15 |
# File 'lib/music_cast/api/set_power.rb', line 13 def toggle make_request('main/setPower?power=toggle') end |