Class: DBus::Systemd::Logind::User

Inherits:
Object
  • Object
show all
Includes:
Mixin::MethodMissing, Mixin::Properties
Defined in:
lib/dbus/systemd/logind/user.rb

Constant Summary collapse

INTERFACE =
'org.freedesktop.login1.User'

Instance Attribute Summary

Attributes included from Mixin::MethodMissing

#object

Instance Method Summary collapse

Methods included from Mixin::Properties

#properties

Methods included from Mixin::MethodMissing

#method_missing, #respond_to_missing?

Constructor Details

#initialize(id, manager = Manager.new) ⇒ User

Returns a new instance of User.



13
14
15
16
17
# File 'lib/dbus/systemd/logind/user.rb', line 13

def initialize(id, manager = Manager.new)
  user_path = manager.GetUser(id).first
  @object = manager.service.object(user_path)
                           .tap(&:introspect)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing