Class: DBus::Systemd::Localed

Inherits:
Object
  • Object
show all
Includes:
Mixin::MethodMissing, Mixin::Properties
Defined in:
lib/dbus/systemd/localed.rb

Constant Summary collapse

NODE =
'/org/freedesktop/locale1'
INTERFACE =
'org.freedesktop.locale1'

Instance Attribute Summary collapse

Attributes included from Mixin::MethodMissing

#object

Instance Method Summary collapse

Methods included from Mixin::Properties

#properties

Methods included from Mixin::MethodMissing

#method_missing, #respond_to_missing?

Constructor Details

#initialize(bus = Helpers.system_bus) ⇒ Localed

Returns a new instance of Localed.



19
20
21
22
23
# File 'lib/dbus/systemd/localed.rb', line 19

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

#serviceObject (readonly)

Returns the value of attribute service.



17
18
19
# File 'lib/dbus/systemd/localed.rb', line 17

def service
  @service
end