Class: ZookeeperCallbacks::VoidCallback

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

Instance Attribute Summary (collapse)

Attributes inherited from Callback

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

- (Object) return_code (readonly)

adelete, aset_acl, add_auth



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

def return_code
  @return_code
end

Instance Method Details

- (Object) initialize_context(hash)



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

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