Class: Rupower::Command
- Inherits:
-
Object
- Object
- Rupower::Command
- Defined in:
- lib/rupower.rb,
lib/rupower/command.rb
Instance Method Summary collapse
Instance Method Details
#battery ⇒ Object
92 93 94 |
# File 'lib/rupower.rb', line 92 def battery upower( "/org/freedesktop/UPower/devices/battery_BAT0" ) end |
#line_ac ⇒ Object
96 97 98 |
# File 'lib/rupower.rb', line 96 def line_ac upower( "/org/freedesktop/UPower/devices/line_power_AC" ) end |