Class: DBus::Systemd::Job
- Inherits:
-
Object
- Object
- DBus::Systemd::Job
- Includes:
- Mixin::MethodMissing, Mixin::Properties
- Defined in:
- lib/dbus/systemd/job.rb
Constant Summary collapse
- INTERFACE =
'org.freedesktop.systemd1.Job'
Instance Attribute Summary
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(id, manager = Manager.new) ⇒ Job
constructor
A new instance of Job.
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(id, manager = Manager.new) ⇒ Job
Returns a new instance of Job.
12 13 14 15 16 |
# File 'lib/dbus/systemd/job.rb', line 12 def initialize(id, manager = Manager.new) job_path = manager.GetJob(id).first @object = manager.service.object(job_path) .tap(&:introspect) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing