Class: DBus::ProxyObjectFactory

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

Overview

D-Bus proxy object factory class

Class that generates and sets up a proxy object based on introspection data.

Instance Method Summary collapse

Constructor Details

#initialize(xml, bus, dest, path) ⇒ ProxyObjectFactory

Creates a new proxy object factory for the given introspection XML xml, bus, destination dest, and path.



499
500
501
# File 'lib/dbus/introspect.rb', line 499

def initialize(xml, bus, dest, path)
  @xml, @bus, @path, @dest = xml, bus, path, dest
end

Instance Method Details

#build ⇒ Object

Generates, sets up and returns the proxy object.



517
518
519
520
521
# File 'lib/dbus/introspect.rb', line 517

def build
  po = ProxyObject.new(@bus, @dest, @path)
  ProxyObjectFactory.introspect_into(po, @xml)
  po
end