Class: Rumba::Sensor::ChargingSourceAvailable
- Inherits:
-
Object
- Object
- Rumba::Sensor::ChargingSourceAvailable
- Defined in:
- lib/rumba/sensors.rb
Class Method Summary collapse
Class Method Details
.convert(v) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/rumba/sensors.rb', line 46 def self.convert(v) h = {} h[:internal_charger] = v & 0b1 > 0 h[:home_base] = v & 0b10 > 0 h end |