Module: Aiwolf::Commands::Vote

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

Instance Method Summary collapse

Instance Method Details

#inner_command_vote(packet) ⇒ Object



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

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