Class: UPnPEventListener

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

Instance Method Summary collapse

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