Class: DBus::Systemd::Networkd::Manager
- Inherits:
-
Object
- Object
- DBus::Systemd::Networkd::Manager
- Includes:
- Mixin::MethodMissing, Mixin::Properties
- Defined in:
- lib/dbus/systemd/networkd/manager.rb
Constant Summary collapse
- NODE =
'/org/freedesktop/network1'- INTERFACE =
'org.freedesktop.network1.Manager'
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(bus = Systemd::Helpers.system_bus) ⇒ Manager
constructor
A new instance of Manager.
- #link(id) ⇒ Object
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(bus = Systemd::Helpers.system_bus) ⇒ Manager
Returns a new instance of Manager.
19 20 21 22 23 |
# File 'lib/dbus/systemd/networkd/manager.rb', line 19 def initialize(bus = Systemd::Helpers.system_bus) @service = bus.service(Networkd::INTERFACE) @object = @service.object(NODE) .tap(&:introspect) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
17 18 19 |
# File 'lib/dbus/systemd/networkd/manager.rb', line 17 def service @service end |