You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: thread_wrapper.rb
    path of file: ./repos/kitsu-server/app/services/zorro/wrapper
    
    the code of the file until where you have to start completion: module Zorro
  class Wrapper
    # A thread on aozora is a top-level post in one of three places:
    #  (1) implicitly wrapping episode discussion (has no content, is auto-generated)
    #  (2) In an aoDiscussion page
    #  (3) On an anime page (right-most 
    
      def anime_ids
        # Extract tags where className is Anime
        anime_tags = @data['tags']&.select { |tag| tag['className'] == 'Anime' } || []
        # Get the ID from those references
        anime_ids = anime_tags.map { |tag| tag['objectId'] }
        # Get the other ID from the _p_anime attribute
        anime_ids += @data['_p_anime'].split('$').last
        anime_ids.uniq
      end