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



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_standbyObject



15
16
17
# File 'lib/music_cast/api/set_power.rb', line 15

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



7
8
9
# File 'lib/music_cast/api/set_power.rb', line 7

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

#toggleObject



11
12
13
# File 'lib/music_cast/api/set_power.rb', line 11

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