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: ncc_partner.rb
    path of file: ./repos/wongi-engine/lib/wongi-engine/beta
    
    the code of the file until where you have to start completion: module Wongi
  module Engine
    class NccPartner < BetaNode
      attr_accessor :ncc, :divergent

      def beta_activate(token)
        # p beta_activate: {class: self.class, object_id:, token:}
    
      def beta_deactivate(token)
        # p beta_deactivate: {class: self.class, object_id:, token:}

        # fetch the owner before deleting the token
        owner = overlay.ncc_owner(token)

        overlay.remove_token(token)
        return unless owner

        ncc.ncc_activate(owner) if overlay.ncc_tokens_for(owner).empty?
      end