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