Class: RBus::SystemBus

Inherits:
Bus show all
Includes:
Singleton
Defined in:
lib/rbus/bus/bus.rb

Overview

Represents the connection to the System Bus.

Instance Attribute Summary

Attributes inherited from Bus

#message_loop, #names, #transport

Instance Method Summary collapse

Methods inherited from Bus

#get_object

Methods inherited from Proxy

#Introspect, #connect!, #interface!, #method!, #method_missing, #parse_arguments!, parse_introspect

Constructor Details

#initializeSystemBus

Returns a new instance of SystemBus.



95
96
97
# File 'lib/rbus/bus/bus.rb', line 95

def initialize
  super(ENV['DBUS_SYSTEM_BUS_ADDRESS'] || 'unix:path=/var/run/dbus/system_bus_socket')
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RBus::Proxy