Module: Subduino::Parse

Defined in:
lib/subduino/parse.rb,
lib/subduino/parse/lux.rb,
lib/subduino/parse/bool.rb,
lib/subduino/parse/flow.rb,
lib/subduino/parse/temp.rb,
lib/subduino/parse/energy.rb,
lib/subduino/parse/presence.rb,
lib/subduino/parse/pressure.rb

Defined Under Namespace

Classes: Analogic, Bool, Digital, Energy, Flow, Knob, Lux, Presence, Pressure, Temp

Class Method Summary collapse

Class Method Details

.work(klass, v, name = nil, id = nil) ⇒ Object



5
6
7
# File 'lib/subduino/parse.rb', line 5

def self.work(klass, v, name=nil, id=nil)
  const_get(klass).new(v, name, id)
end