Snake case for method name and adapt to ruby 2