Class: ZooKeeper::Operation
- Inherits:
-
Object
- Object
- ZooKeeper::Operation
- Defined in:
- lib/zkruby/protocol.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#op ⇒ Object
readonly
Returns the value of attribute op.
-
#opcode ⇒ Object
readonly
Returns the value of attribute opcode.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(op, opcode, request, response, callback) ⇒ Operation
constructor
A new instance of Operation.
- #path ⇒ Object
Constructor Details
#initialize(op, opcode, request, response, callback) ⇒ Operation
Returns a new instance of Operation.
66 67 68 69 70 |
# File 'lib/zkruby/protocol.rb', line 66 def initialize(op,opcode,request,response,callback) @op=op;@opcode=opcode @request=request;@response=response @callback=callback end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
65 66 67 |
# File 'lib/zkruby/protocol.rb', line 65 def callback @callback end |
#op ⇒ Object (readonly)
Returns the value of attribute op.
65 66 67 |
# File 'lib/zkruby/protocol.rb', line 65 def op @op end |
#opcode ⇒ Object (readonly)
Returns the value of attribute opcode.
65 66 67 |
# File 'lib/zkruby/protocol.rb', line 65 def opcode @opcode end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
65 66 67 |
# File 'lib/zkruby/protocol.rb', line 65 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
65 66 67 |
# File 'lib/zkruby/protocol.rb', line 65 def response @response end |
Instance Method Details
#path ⇒ Object
72 73 74 75 76 |
# File 'lib/zkruby/protocol.rb', line 72 def path #Every request has a path! #TODO - path may be chrooted! request.path if request.respond_to?(:path) end |