class Rumba::Sensor::ChargingSourceAvailable
Public Class Methods
convert(v)
click to toggle source
# 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