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: has_two_factor.rb
    path of file: ./repos/zammad/app/models/user
    
    the code of the file until where you have to start completion: # Copyright (C) 2012-2024 Zammad Foundation, htt
    
  def two_factor_enabled_authentication_methods
    auth_two_factor
      .enabled_authentication_methods
      .map do |method|
        {
          method:     method.method_name,
          configured: two_factor_authentication_method_configured?(method),
          default:    two_factor_authentication_method_default?(method),

          # configuration_possible: method.configuration_possible?, # TODO: For the e-mail/sms method (like a health check), for later.
        }
      end
  end