Class: DBus::Systemd::Timedated
- Inherits:
-
Object
- Object
- DBus::Systemd::Timedated
- Includes:
- Mixin::MethodMissing, Mixin::Properties
- Defined in:
- lib/dbus/systemd/timedated.rb
Constant Summary collapse
- NODE =
'/org/freedesktop/timedate1'- INTERFACE =
'org.freedesktop.timedate1'
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Attributes included from Mixin::MethodMissing
Instance Method Summary collapse
-
#initialize(bus = Helpers.system_bus) ⇒ Timedated
constructor
A new instance of Timedated.
Methods included from Mixin::Properties
Methods included from Mixin::MethodMissing
#method_missing, #respond_to_missing?
Constructor Details
#initialize(bus = Helpers.system_bus) ⇒ Timedated
Returns a new instance of Timedated.
15 16 17 18 19 |
# File 'lib/dbus/systemd/timedated.rb', line 15 def initialize(bus = Helpers.system_bus) @service = bus.service(INTERFACE) @object = @service.object(NODE) .tap(&:introspect) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class DBus::Systemd::Mixin::MethodMissing
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
13 14 15 |
# File 'lib/dbus/systemd/timedated.rb', line 13 def service @service end |