Class: MusicCast::SetPower
Instance Method Summary collapse
- #disable_auto_standby ⇒ Object
- #enable_auto_standby ⇒ Object
- #on ⇒ Object
- #standby ⇒ Object
- #toggle ⇒ Object
Methods inherited from API
Instance Method Details
#disable_auto_standby ⇒ Object
19 20 21 |
# File 'lib/music_cast/api/set_power.rb', line 19 def disable_auto_standby make_request('system/setAutoPowerStandby?enable=false') end |
#enable_auto_standby ⇒ Object
15 16 17 |
# File 'lib/music_cast/api/set_power.rb', line 15 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
7 8 9 |
# File 'lib/music_cast/api/set_power.rb', line 7 def standby make_request('main/setPower?power=standby') end |
#toggle ⇒ Object
11 12 13 |
# File 'lib/music_cast/api/set_power.rb', line 11 def toggle make_request('main/setPower?power=toggle') end |