Class: Zookeeper::Callbacks::DataCallback
- Defined in:
- lib/zookeeper/callbacks.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
aget, awget.
-
#return_code ⇒ Object
readonly
aget, awget.
-
#stat ⇒ Object
readonly
aget, awget.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#call, #completed?, create, #initialize
Constructor Details
This class inherits a constructor from Zookeeper::Callbacks::Base
Instance Attribute Details
#data ⇒ Object (readonly)
aget, awget
55 56 57 |
# File 'lib/zookeeper/callbacks.rb', line 55 def data @data end |
#return_code ⇒ Object (readonly)
aget, awget
55 56 57 |
# File 'lib/zookeeper/callbacks.rb', line 55 def return_code @return_code end |
#stat ⇒ Object (readonly)
aget, awget
55 56 57 |
# File 'lib/zookeeper/callbacks.rb', line 55 def stat @stat end |
Instance Method Details
#initialize_context(hash) ⇒ Object
57 58 59 |
# File 'lib/zookeeper/callbacks.rb', line 57 def initialize_context(hash) @return_code, @data, @stat, @context = hash[:rc], hash[:data], hash[:stat], hash[:context] end |