Class: RZWaveWay::CommandClasses::Factory
- Inherits:
-
Object
- Object
- RZWaveWay::CommandClasses::Factory
- Includes:
- Singleton
- Defined in:
- lib/rzwaveway/command_classes.rb
Instance Method Summary collapse
Instance Method Details
#instantiate(id, device) ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/rzwaveway/command_classes.rb', line 38 def instantiate(id, device) if CLASSES.has_key? id CLASSES[id].new(device) else CommandClasses::Unsupported.instance end end |