Class: Zookeeper::Callbacks::WatcherCallback

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

#pathObject (readonly)

wexists, awexists, wget, awget, wget_children, awget_children


46
47
48
# File 'lib/zookeeper/callbacks.rb', line 46

def path
  @path
end

#stateObject (readonly)

wexists, awexists, wget, awget, wget_children, awget_children


46
47
48
# File 'lib/zookeeper/callbacks.rb', line 46

def state
  @state
end

#typeObject (readonly)

wexists, awexists, wget, awget, wget_children, awget_children


46
47
48
# File 'lib/zookeeper/callbacks.rb', line 46

def type
  @type
end

Instance Method Details

#initialize_context(hash) ⇒ Object


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

def initialize_context(hash)
  @type, @state, @path, @context = hash[:type], hash[:state], hash[:path], hash[:context]
end