Class: UPnPEventListener
- Inherits:
-
Object
- Object
- UPnPEventListener
- Defined in:
- lib/upnp_event.rb
Instance Method Summary collapse
-
#initialize(on_event_notify = nil) ⇒ UPnPEventListener
constructor
A new instance of UPnPEventListener.
- #on_event_notify(sid, props) ⇒ Object
Constructor Details
#initialize(on_event_notify = nil) ⇒ UPnPEventListener
55 56 57 |
# File 'lib/upnp_event.rb', line 55 def initialize(on_event_notify = nil) @on_event_notify = on_event_notify end |
Instance Method Details
#on_event_notify(sid, props) ⇒ Object
59 60 61 62 63 |
# File 'lib/upnp_event.rb', line 59 def on_event_notify(sid, props) if @on_event_notify @on_event_notify.call sid, props end end |