Class: DBus::ProxyPeerService

Inherits:
ProxyService show all
Defined in:
lib/dbus/proxy_service.rb

Overview

A hack for pretending that a PeerConnection has a single unnamed ProxyService so that we can get ProxyObjects from it.

Instance Attribute Summary

Attributes inherited from ProxyService

#connection, #name

Attributes inherited from NodeTree

#root

Instance Method Summary collapse

Methods inherited from ProxyService

#[], #exists?, #introspect, #object

Methods inherited from NodeTree

#get_node

Constructor Details

#initialize(connection) ⇒ ProxyPeerService

Returns a new instance of ProxyPeerService.

Parameters:

  • connection (Connection)

    The peer connection we’re using.



101
102
103
104
105
# File 'lib/dbus/proxy_service.rb', line 101

def initialize(connection)
  # this way we disallow ProxyService taking a nil name by accident
  super(":0.0", connection)
  @name = nil
end