Hipchat statistics in ruby