Class: DBus::RemoteService

Inherits:
Object
  • Object
show all
Defined in:
lib/dbus.rb

Overview

A remote service providing objects.

A service is typically a process or application that provides remote objects, but can also be the broadcast service that receives signals from all applications on the Bus.

Instance Method Summary collapse

Constructor Details

#initialize(bus, service_name) ⇒ RemoteService

Returns a new instance of RemoteService.



356
357
358
359
# File 'lib/dbus.rb', line 356

def initialize(bus, service_name)
  @bus = bus
  @service_name = service_name
end

Instance Method Details

#get_busObject

Bus associated with this service



362
363
364
# File 'lib/dbus.rb', line 362

def get_bus
  @bus
end

#get_object(object_path, interface) ⇒ Object

Creates an object for the specified object_path



372
373
374
# File 'lib/dbus.rb', line 372

def get_object(object_path, interface)
  RemoteObject.new(self, object_path, interface)
end

#get_service_nameObject

The service name



367
368
369
# File 'lib/dbus.rb', line 367

def get_service_name
  @service_name
end