Class: DBus::Systemd::Machined::Machine
- Inherits:
-
Object
- Object
- DBus::Systemd::Machined::Machine
- Defined in:
- lib/dbus/systemd/machined/machine.rb
Constant Summary collapse
- INTERFACE =
'org.freedesktop.machine1.Machine'
Instance Attribute Summary
Attributes included from DBus::Systemd::Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(name, manager = Manager.new) ⇒ Machine
constructor
A new instance of Machine.
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
Returns a new instance of Machine.
13 14 15 16 17 |
# File 'lib/dbus/systemd/machined/machine.rb', line 13 def initialize(name, manager = Manager.new) machine_path = manager.GetMachine(name).first @object = manager.service.object(machine_path) .tap(&:introspect) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing