lib/rupnp/event.rb in rupnp-0.2.2 vs lib/rupnp/event.rb in rupnp-0.3.0
- old
+ new
@@ -6,28 +6,32 @@
class Event < EM::Channel
# Get service ID
# @return [Integer]
attr_reader :sid
+ attr_reader :callback_url
# @param [String] event_suburl Event subscription URL
# @param [String] callback_url Callback URL to receive events
# @param [#to_i] sid
# @param [Integer] timeout for event (in seconds)
def initialize(event_suburl, callback_url, sid, timeout)
super()
@event_suburl = event_suburl
+ @callback_url = callback_url
@sid, @timeout = sid, timeout
@timeout_timer = EM.add_timer(@timeout) { self << :timeout }
end
# Renew subscription to event
+ # @todo
def renew_subscription
raise NotImplementedError
end
# Cancel subscription to event
+ # @todo
def cancel_subscription
raise NotImplementedError
end
end