Module: RZWaveWay::PropertiesCache
- Included in:
- CommandClass, ZWaveDevice
- Defined in:
- lib/rzwaveway/properties_cache.rb
Instance Method Summary collapse
Instance Method Details
#save_properties ⇒ Object
3 4 5 |
# File 'lib/rzwaveway/properties_cache.rb', line 3 def save_properties properties.values.each {|property| property.save} end |
#to_hash ⇒ Object
7 8 9 |
# File 'lib/rzwaveway/properties_cache.rb', line 7 def to_hash properties.each_with_object({}) {|property, hash| hash[property[0]] = property[1].to_hash} end |