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
94 95 96 |
# File 'lib/rupower.rb', line 94 def battery upower( "/org/freedesktop/UPower/devices/battery_BAT0" ) end |
#line_ac ⇒ Object
98 99 100 |
# File 'lib/rupower.rb', line 98 def line_ac upower( "/org/freedesktop/UPower/devices/line_power_AC" ) end |