Class: Zookeeper::Callbacks::StringsCallback

Inherits:
Base
  • Object
show all
Defined in:
lib/zookeeper/callbacks.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#completed, #context, #proc

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

#childrenObject (readonly)

aget_children, awget_children


75
76
77
# File 'lib/zookeeper/callbacks.rb', line 75

def children
  @children
end

#return_codeObject (readonly)

aget_children, awget_children


75
76
77
# File 'lib/zookeeper/callbacks.rb', line 75

def return_code
  @return_code
end

#statObject (readonly)

aget_children, awget_children


75
76
77
# File 'lib/zookeeper/callbacks.rb', line 75

def stat
  @stat
end

Instance Method Details

#initialize_context(hash) ⇒ Object


77
78
79
# File 'lib/zookeeper/callbacks.rb', line 77

def initialize_context(hash)
  @return_code, @children, @stat, @context = hash[:rc], hash[:strings], hash[:stat], hash[:context]
end