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: join_node.rb
    path of file: ./repos/chronomodel/lib/chrono_model/patches
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ChronoModel
  module Patches
    # This class supports the AR 5.0
    
      def initialize(join_node, history_model, as_of_time)
        @name        = join_node.table_name
        @table_name  = join_node.table_name
        @table_alias = join_node.table_alias

        @as_of_time  = as_of_time

        virtual_table = history_model
                        .virtual_table_at(@as_of_time, table_name: @table_alias || @table_name)

        super(virtual_table)
      end