Class: Zookeeper::Callbacks::StringCallback

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

Instance Attribute Summary collapse

Attributes inherited from Base

#completed, #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

#contextObject (readonly)

acreate, async


64
65
66
# File 'lib/zookeeper/callbacks.rb', line 64

def context
  @context
end

#return_codeObject (readonly)

acreate, async


64
65
66
# File 'lib/zookeeper/callbacks.rb', line 64

def return_code
  @return_code
end

#stringObject (readonly) Also known as: path

acreate, async


64
65
66
# File 'lib/zookeeper/callbacks.rb', line 64

def string
  @string
end

Instance Method Details

#initialize_context(hash) ⇒ Object


68
69
70
# File 'lib/zookeeper/callbacks.rb', line 68

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