Class: Domotics::Core::ReedSwitch
- Defined in:
- lib/domotics/core/element/reed_switch.rb
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ ReedSwitch
constructor
A new instance of ReedSwitch.
- #set_state(*args) ⇒ Object
- #to_hls(state) ⇒ Object
Methods inherited from Element
data=, #image, #info, #load_driver, #state, #state_changed, #to_s, #verbose_state
Constructor Details
#initialize(args = {}) ⇒ ReedSwitch
Returns a new instance of ReedSwitch.
3 4 5 6 7 8 |
# File 'lib/domotics/core/element/reed_switch.rb', line 3 def initialize(args = {}) @type = args[:type] || :reed_switch args[:driver] = "NCSensor" load_driver args super end |