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: attribute_encryption.rb
    path of file: ./repos/identity-idp/app/services/key_rotator
    
    the code of the file until where you have to start completion: module KeyRotator
  class AttributeEncryption
    def initialize(model)
      @model = model
      @encryptor = En
    
    def encrypted_attributes
      model.class.encryptable_attributes.each_with_object({}) do |attribute, result|
        plain_attribute = model.public_send(attribute)
        next unless plain_attribute

        result[:"encrypted_#{attribute}"] = EncryptedAttribute.new_from_decrypted(
          plain_attribute,
        ).encrypted
      end
    end