lib/moneyball/batted_ball_type_extractor.rb
Method classification
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def classification
case
when event_description.match(/line(s)? (drive|into|out)/)
"Line drive"
when event_description.match(/fl(ies|y) (ball|out)/)