def search_by_id(movie_id)
      movie = @badfruit.get_movie_info(movie_id, "main")
      raise 'Movie not found' if movie.nil? || movie.empty?
      @badfruit.parse_movie_array(JSON.parse(movie))
    end
def search_by_id(movie_id)
      movie = @badfruit.get_movie_info(movie_id, "main")
      raise 'Movie not found' if movie.nil? || movie.empty?
      @badfruit.parse_movie_array(JSON.parse(movie))
    end
search by id

 Search for a movie by Rotten Tomatoes id.

 @param [String] movie_id The id of the movie to search for.

 @return [BadFruit::Movie] A movie object from the response data.