Class: DBus::Systemd::Logind::Seat
- Inherits:
-
Object
- Object
- DBus::Systemd::Logind::Seat
- Includes:
- Mixin::MethodMissing, Mixin::Properties
- Defined in:
- lib/dbus/systemd/logind/seat.rb
Constant Summary collapse
- INTERFACE =
'org.freedesktop.login1.Seat'
Instance Attribute Summary
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(id, manager = Manager.new) ⇒ Seat
constructor
A new instance of Seat.
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(id, manager = Manager.new) ⇒ Seat
Returns a new instance of Seat.
13 14 15 16 17 |
# File 'lib/dbus/systemd/logind/seat.rb', line 13 def initialize(id, manager = Manager.new) seat_path = manager.GetSeat(id).first @object = manager.service.object(seat_path) .tap(&:introspect) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing