Class: DBus::Systemd::Networkd::Link

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

Constant Summary collapse

INTERFACE =

networkd link dbus interface

'org.freedesktop.network1.Link'.freeze

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) ⇒ Link

create new networkd link dbus proxy object

Parameters:



39
40
41
42
43
# File 'lib/dbus/systemd/networkd/link.rb', line 39

def initialize(id, manager = Manager.new)
  @object = manager.service.object("#{Manager::NODE}/link/#{id}")
  @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