https://polishruby.com/222/rubyのcase-when文-複数の値と範囲の指定/