Module: RZWaveWay::PropertiesCache

Included in:
CommandClass, ZWaveDevice
Defined in:
lib/rzwaveway/properties_cache.rb

Instance Method Summary collapse

Instance Method Details

#save_propertiesObject



3
4
5
# File 'lib/rzwaveway/properties_cache.rb', line 3

def save_properties
  properties.values.each {|property| property.save}
end

#to_hashObject



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