Method: Device::System.battery_capacity_type
- Defined in:
- lib/device/system.rb
.battery_capacity_type ⇒ Object
Checks the type of the battery capacity return (percentage or scale).
49 50 51 52 53 54 55 |
# File 'lib/device/system.rb', line 49 def self.battery_capacity_type begin adapter.battery_capacity_type rescue StandardError => exception 'scale' end end |