Module: ZK::Group::Common
Overview
common znode data access
Instance Method Summary collapse
-
#data ⇒ Object
the data my znode contains.
-
#data=(val) ⇒ String
Set the data in my group znode (the data at #path).
Instance Method Details
#data ⇒ Object
the data my znode contains
16 17 18 |
# File 'lib/zk-group.rb', line 16 def data zk.get(path).first end |
#data=(val) ⇒ String
Set the data in my group znode (the data at #path)
In the base implementation, no version is given, this will just overwrite whatever is currently there.
27 28 29 30 |
# File 'lib/zk-group.rb', line 27 def data=(val) zk.set(path, val) val end |