Class: DBus::Systemd::Machined::Image

Inherits:
Object
  • Object
show all
Includes:
DBus::Systemd::Mixin::MethodMissing, DBus::Systemd::Mixin::Properties
Defined in:
lib/dbus/systemd/machined/image.rb

Constant Summary collapse

INTERFACE =
'org.freedesktop.machine1.Image'

Instance Attribute Summary

Attributes included from DBus::Systemd::Mixin::MethodMissing

#object

Instance Method Summary collapse

Methods included from DBus::Systemd::Mixin::Properties

#properties

Methods included from DBus::Systemd::Mixin::MethodMissing

#method_missing, #respond_to_missing?

Constructor Details

#initialize(name, manager = Manager.new) ⇒ Image

Returns a new instance of Image.



13
14
15
16
17
# File 'lib/dbus/systemd/machined/image.rb', line 13

def initialize(name, manager = Manager.new)
  image_path = manager.GetImage(name).first
  @object = manager.service.object(image_path)
                           .tap(&:introspect)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing