please change this to `response.each do |result_parts|`