Class: MusicCast::SetPower

Inherits:
API
  • Object
show all
Defined in:
lib/music_cast/api/set_power.rb

Instance Method Summary collapse

Methods inherited from API

#configuration

Instance Method Details

#disable_auto_standbyObject



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_standbyObject



17
18
19
# File 'lib/music_cast/api/set_power.rb', line 17

def enable_auto_standby
  make_request('system/setAutoPowerStandby?enable=true')
end

#onObject



3
4
5
# File 'lib/music_cast/api/set_power.rb', line 3

def on
  make_request('main/setPower?power=on')
end

#standbyObject 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

#toggleObject



13
14
15
# File 'lib/music_cast/api/set_power.rb', line 13

def toggle
  make_request('main/setPower?power=toggle')
end