Class: DBus::Systemd::Machined::Image
- Inherits:
-
Object
- Object
- DBus::Systemd::Machined::Image
- Defined in:
- lib/dbus/systemd/machined/image.rb
Constant Summary collapse
- INTERFACE =
machined image object dbus interface
'org.freedesktop.machine1.Image'.freeze
Instance Attribute Summary
Attributes included from DBus::Systemd::Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(name, manager = Manager.new) ⇒ Image
constructor
Create a machined image 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) ⇒ Image
Create a machined image dbus proxy object
39 40 41 42 43 44 |
# File 'lib/dbus/systemd/machined/image.rb', line 39 def initialize(name, manager = Manager.new) image_path = manager.GetImage(name).first @object = manager.service.object(image_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