Class DBus::MatchRule
In: lib/dbus/matchrule.rb
Parent: Object

D-Bus match rule class

FIXME

Methods

from_s   from_signal   match   new   to_s   type=  

Constants

FILTERS = [:sender, :interface, :member, :path, :destination, :type]   The list of possible match filters.

Attributes

destination  [RW]  The destination filter.
interface  [RW]  The interface filter.
member  [RW]  The member filter.
path  [RW]  The path filter.
sender  [RW]  The sender filter.
type  [R]  The type type that is matched.

Public Class methods

Create a new match rule

Public Instance methods

Parses a match rule string s and sets the filters on the object.

Sets the match rule to filter for the given signal and the given interface intf.

Determines whether a message msg matches the match rule.

Returns a match rule string version of the object. E.g.: "type=‘signal’,sender=‘org.freedesktop.DBus’,interface=‘org.freedesktop.DBus’,member=‘Foo’,path=’/bar/foo’,destination=’:452345.34’,arg2=‘bar’"

Set the message types to filter to type t. Possible message types are: signal, method_call, method_return, and error.

[Validate]