I was trying to work out what language it is - also switching on strings like that doesn't seem like a great idea.
The app itself appears to be written in Ruby (the github link is posted elsewhere in the comments), and looking at the image included in the article further down I assume the code is from a Go app that takes the Ruby app's logs and generates some statistics.
(Also use consts so you don’t make typos - or so your typos are at least consistent :)