Class: Baykit::BayServer::Protocol::Command
- Inherits:
-
Object
- Object
- Baykit::BayServer::Protocol::Command
- Defined in:
- lib/baykit/bayserver/protocol/command.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
abstract methods.
Instance Method Summary collapse
-
#initialize(type) ⇒ Command
constructor
A new instance of Command.
Constructor Details
#initialize(type) ⇒ Command
Returns a new instance of Command.
14 15 16 |
# File 'lib/baykit/bayserver/protocol/command.rb', line 14 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
abstract methods
unpack(P packet) pack(P packet) handle(H handler)
12 13 14 |
# File 'lib/baykit/bayserver/protocol/command.rb', line 12 def type @type end |