Class: Baykit::BayServer::Protocol::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/baykit/bayserver/protocol/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject (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