class DeviceAPI::Android::Plugin::Battery
Attributes
current_temp[R]
health[R]
level[R]
max_current[R]
max_temp[R]
powered[R]
status[R]
voltage[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/device_api/android/plugins/battery.rb, line 7 def initialize(options = {}) qualifier = options[:qualifier] props = ADB.get_battery_info(qualifier) @current_temp = props["temperature"] @max_temp = props["mBatteryMaxTemp"] @max_current = props["mBatteryMaxCurrent"] @voltage = props["voltage"] @level = props["level"] @health = props["health"] @status = props["status"] @powered = props["USB powered"] end