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

.status(name) ⇒ Object



15
16
17
# File 'lib/wemo.rb', line 15

def self.status(name)
  Wemo::Switch.status(name)
end