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 =
'org.freedesktop.resolve1.Link'
Instance Attribute Summary
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(id, manager = Manager.new) ⇒ Link
constructor
A new instance of Link.
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(id, manager = Manager.new) ⇒ Link
Returns a new instance of Link.
13 14 15 16 17 |
# File 'lib/dbus/systemd/resolved/link.rb', line 13 def initialize(id, manager = Manager.new) link_path = manager.GetLink(id).first @object = manager.service.object(link_path) .tap(&:introspect) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing