Class: ZookeeperCallbacks::StringCallback

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

Instance Attribute Summary collapse

Attributes inherited from Callback

#completed, #proc

Instance Method Summary collapse

Methods inherited from Callback

#call, #completed?, #initialize

Constructor Details

This class inherits a constructor from ZookeeperCallbacks::Callback

Instance Attribute Details

#contextObject (readonly)

acreate, async



48
49
50
# File 'lib/zookeeper/callbacks.rb', line 48

def context
  @context
end

#return_codeObject (readonly)

acreate, async



48
49
50
# File 'lib/zookeeper/callbacks.rb', line 48

def return_code
  @return_code
end

#stringObject (readonly) Also known as: path

acreate, async



48
49
50
# File 'lib/zookeeper/callbacks.rb', line 48

def string
  @string
end

Instance Method Details

#initialize_context(hash) ⇒ Object



52
53
54
# File 'lib/zookeeper/callbacks.rb', line 52

def initialize_context(hash)
  @return_code, @string, @context = hash[:rc], hash[:string], hash[:context]
end