Class: Rumba::Sensor::ChargingState
- Inherits:
-
Object
- Object
- Rumba::Sensor::ChargingState
- Defined in:
- lib/rumba/sensors.rb
Class Method Summary collapse
Class Method Details
.convert(v) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/rumba/sensors.rb', line 12 def self.convert(v) case v when 0 :not_charging when 1 :reconditioning_charging when 2 :full_charging when 3 :trickle_charging when 4 :waiting when 5 :charging_fault_condition end end |