Class: DBus::Systemd::Logind::User
- Inherits:
-
Object
- Object
- DBus::Systemd::Logind::User
- Includes:
- Mixin::MethodMissing, Mixin::Properties
- Defined in:
- lib/dbus/systemd/logind/user.rb
Constant Summary collapse
- INTERFACE =
logind user object dbus interface
'org.freedesktop.login1.User'.freeze
Instance Attribute Summary
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(id, manager = Manager.new) ⇒ User
constructor
create new logind user dbus proxy object.
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(id, manager = Manager.new) ⇒ User
create new logind user dbus proxy object
39 40 41 42 43 44 |
# File 'lib/dbus/systemd/logind/user.rb', line 39 def initialize(id, manager = Manager.new) user_path = manager.GetUser(id).first @object = manager.service.object(user_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