Module: Aiwolf::Base::CommandParser

Includes:
Logger
Included in:
Aiwolf::Base
Defined in:
lib/aiwolf/base/command_parser.rb

Instance Attribute Summary

Attributes included from Logger

#logger

Instance Method Summary collapse

Instance Method Details

#parse_command(packet) ⇒ Object



10
11
12
13
# File 'lib/aiwolf/base/command_parser.rb', line 10

def parse_command(packet)
  logger.debug(packet[:request].downcase)
  send("inner_command_#{packet[:request].downcase}".to_sym, packet)
end