Class: DBus::Systemd::Machined::Machine
- Inherits:
-
Object
- Object
- DBus::Systemd::Machined::Machine
- Defined in:
- lib/dbus/systemd/machined/machine.rb
Constant Summary collapse
- INTERFACE =
machined machine object dbus interface
'org.freedesktop.machine1.Machine'.freeze
Instance Attribute Summary
Attributes included from DBus::Systemd::Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(name, manager = Manager.new) ⇒ Machine
constructor
create machined machine dbus proxy object.
Methods included from DBus::Systemd::Mixin::Properties
Methods included from DBus::Systemd::Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(name, manager = Manager.new) ⇒ Machine
create machined machine dbus proxy object
39 40 41 42 43 44 |
# File 'lib/dbus/systemd/machined/machine.rb', line 39 def initialize(name, manager = Manager.new) machine_path = manager.GetMachine(name).first @object = manager.service.object(machine_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