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