Class: Zookeeper::Callbacks::WatcherCallback
- Defined in:
- lib/zookeeper/callbacks.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
wexists, awexists, wget, awget, wget_children, awget_children.
-
#state ⇒ Object
readonly
wexists, awexists, wget, awget, wget_children, awget_children.
-
#type ⇒ Object
readonly
wexists, awexists, wget, awget, wget_children, awget_children.
Attributes inherited from Base
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
#path ⇒ Object (readonly)
wexists, awexists, wget, awget, wget_children, awget_children
46 47 48 |
# File 'lib/zookeeper/callbacks.rb', line 46 def path @path end |
#state ⇒ Object (readonly)
wexists, awexists, wget, awget, wget_children, awget_children
46 47 48 |
# File 'lib/zookeeper/callbacks.rb', line 46 def state @state end |
#type ⇒ Object (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 |