Module: Aiwolf::Commands::Divine

Included in:
Aiwolf::Client
Defined in:
lib/aiwolf/commands/divine.rb

Instance Method Summary collapse

Instance Method Details

#inner_command_divine(packet) ⇒ Object



6
7
8
9
10
# File 'lib/aiwolf/commands/divine.rb', line 6

def inner_command_divine(packet)
  hash = send(:command_divine, packet[:gameInfo])
  return '' if hash.nil? || hash.empty?
  JSON.generate(hash)
end