lib/zookeeper/stat.rb in zookeeper-0.3.2 vs lib/zookeeper/stat.rb in zookeeper-0.4.0

- old
+ new

@@ -1,7 +1,7 @@ module ZookeeperStat class Stat - attr_reader :version, :exists + attr_reader :version, :exists, :czxid, :mzxid, :ctime, :mtime, :cverzion, :aversion, :ephemeralOwner, :dataLength, :numChildren, :pzxid def initialize(val) @exists = !!val @czxid, @mzxid, @ctime, @mtime, @version, @cversion, @aversion, @ephemeralOwner, @dataLength, @numChildren, @pzxid = val if val.is_a?(Array) val.each { |k,v| instance_variable_set "@#{k}", v } if val.is_a?(Hash)