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: o_auth_application.rb
    path of file: ./repos/diaspora/app/models/api/openid_connect
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Copyright (c) 2011 nov matake
#
# Permission is hereby granted, free of char
    
        def registrar_attributes(registrar)
          supported_metadata.each_with_object({}) do |key, attr|
            value = registrar.public_send(key)
            next unless value
            case key
            when :subject_type
              attr[:ppid] = (value == "pairwise")
            when :jwks_uri
              response = Faraday.get(value)
              attr[:jwks] = response.body
              attr[:jwks_uri] = value
            when :jwks
              attr[:jwks] = value.to_json
            else
              attr[key] = value
            end
          end