lib/deepstream/record.rb in deepstream-0.2.5 vs lib/deepstream/record.rb in deepstream-0.2.6
- old
+ new
@@ -7,10 +7,11 @@
attr_reader :name, :data, :version
def initialize(client, name)
@client = client
@name = name
- @data, @version = nil
+ @data = {}
+ @version = nil
@client.send_message(TOPIC::RECORD, ACTION::CREATEORREAD, @name)
end
def inspect
"#{self.class} #{@name} #{@version} #{@data}"