Module: Winker

Extended by:
ApiMethods, Configuration, Connection, Parser
Defined in:
lib/winker.rb,
lib/winker/group.rb,
lib/winker/scene.rb,
lib/winker/device.rb,
lib/winker/version.rb,
lib/winker/connection.rb,
lib/winker/api_methods.rb,
lib/winker/devices/hub.rb,
lib/winker/temperature.rb,
lib/winker/devices/on_off.rb,
lib/winker/devices/eggtray.rb,
lib/winker/devices/light_bulb.rb,
lib/winker/devices/sensor_pod.rb,
lib/winker/devices/device_methods.rb,
lib/winker/devices/generic_device.rb,
lib/winker/devices/unknown_device.rb

Defined Under Namespace

Modules: ApiMethods, Configuration, Connection, Devices, Parser Classes: Device, Group, Scene, Temperature

Constant Summary collapse

VERSION =
"0.0.15"

Instance Attribute Summary

Attributes included from Configuration

#access_token, #client_id, #client_secret, #endpoint, #logger, #password, #refresh_token, #server_time_dif, #username, #wait_for_updates

Class Method Summary collapse

Methods included from Parser

parse

Methods included from Configuration

configure

Methods included from Connection

connection, get, post, put

Methods included from ApiMethods

activate_scene, authorize, channels, devices, get, get_device, get_scene, groups, icons, post, put, scenes, update_device, update_group

Class Method Details

.wait_for_update(should_i_wait = true) ⇒ Object



48
49
50
51
52
53
54
55
56
57
# File 'lib/winker.rb', line 48

def self.wait_for_update(should_i_wait = true)
  _default_setting = self.wait_for_updates
  self.wait_for_updates = should_i_wait
  begin
    yield
  rescue Exception => e
    self.wait_for_updates = _default_setting
    raise e
  end
end