Module: Wemo
- Defined in:
- lib/wemo.rb,
lib/wemo/switch.rb,
lib/wemo/version.rb
Defined Under Namespace
Classes: Switch
Constant Summary collapse
- NAMESPACE =
'http://www.belkin.com/'
- VERSION =
"0.0.7"
Class Method Summary collapse
Class Method Details
.off(name) ⇒ Object
11 12 13 |
# File 'lib/wemo.rb', line 11 def self.off(name) Wemo::Switch.send_command(name, 'off') end |
.on(name) ⇒ Object
7 8 9 |
# File 'lib/wemo.rb', line 7 def self.on(name) Wemo::Switch.send_command(name, 'on') end |