Class: Mess::WordsPerMessage

Inherits:
Plotter
  • Object
show all
Defined in:
lib/mess/plotter/words_per_msg.rb

Instance Attribute Summary

Attributes inherited from Plotter

#data

Instance Method Summary collapse

Methods inherited from Plotter

available, describe, #run

Constructor Details

#initialize(chat) ⇒ WordsPerMessage

Returns a new instance of WordsPerMessage.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/mess/plotter/words_per_msg.rb', line 8

def initialize chat
  super
  @data  = Hash.new
  @msgs  = Hash.new
  @words = Hash.new
  chat.usrs.each do |u|
    @data[u]  = nil
    @msgs[u]  = 0
    @words[u] = 0
  end
end