Module: Sense::SleepSounds
- Included in:
- Client
- Defined in:
- lib/hello_sense/sleep_sounds.rb
Instance Method Summary collapse
- #play_sound ⇒ Object
- #sound_durations ⇒ Hash
- #sounds ⇒ Hash
- #sounds_combined_state ⇒ Hash
- #sounds_status ⇒ Hash
- #stop_sounds(data) ⇒ Object
Instance Method Details
#play_sound ⇒ Object
59 60 61 |
# File 'lib/hello_sense/sleep_sounds.rb', line 59 def play_sound post('/v2/sleep_sounds/play') end |
#sound_durations ⇒ Hash
55 56 57 |
# File 'lib/hello_sense/sleep_sounds.rb', line 55 def sound_durations get('/v2/sleep_sounds/durations') end |
#sounds ⇒ Hash
79 80 81 |
# File 'lib/hello_sense/sleep_sounds.rb', line 79 def sounds get('/v2/sleep_sounds/sounds') end |
#sounds_combined_state ⇒ Hash
38 39 40 |
# File 'lib/hello_sense/sleep_sounds.rb', line 38 def sounds_combined_state get('/v2/sleep_sounds/combined_state') end |
#sounds_status ⇒ Hash
93 94 95 |
# File 'lib/hello_sense/sleep_sounds.rb', line 93 def sounds_status get('/v2/sleep_sounds/status') end |
#stop_sounds(data) ⇒ Object
97 98 99 |
# File 'lib/hello_sense/sleep_sounds.rb', line 97 def stop_sounds(data) post('/v2/sleep_sounds/stop', data) end |