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 =
logind seat object dbus interface
'org.freedesktop.login1.Seat'.freeze
Instance Attribute Summary
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(id, manager = Manager.new) ⇒ Seat
constructor
create a new logind seat dbus object.
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(id, manager = Manager.new) ⇒ Seat
create a new logind seat dbus object
39 40 41 42 43 44 |
# File 'lib/dbus/systemd/logind/seat.rb', line 39 def initialize(id, manager = Manager.new) seat_path = manager.GetSeat(id).first @object = manager.service.object(seat_path) @object.default_iface = INTERFACE @object.introspect end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing