lib/deepstream/list.rb in deepstream-1.0.9 vs lib/deepstream/list.rb in deepstream-1.0.10

- old
+ new

@@ -3,21 +3,23 @@ module Deepstream class List < Record LIST_CALLBACKS = %i{added removed} + attr_reader :version + def initialize(*args) super @data = [] @handlers = {} end def add(record_name) unless @data.include?(record_name) @data << record_name set - notify_listeners(:removed, record_name) + notify_listeners(:added, record_name) end rescue => e @client.on_exception(e) end @@ -96,6 +98,6 @@ record.when_ready(&proc) end end end end -end +end \ No newline at end of file