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: user_factory.rb
    path of file: ./repos/kaiju/app/models/kaiju
    
    the code of the file until where you have to start completion: require 'kaiju/user'

module Kaiju
  # Public: A User model
  class UserFactory
    def self.id(uid)
      Digest::SHA25
    
    def self.new_user(uid, name = nil, email = nil, nickname = nil)
      user = User.by_id(id(uid))
      if user.nil?
        user = User.new(id(uid))
        now = Time.now.iso8601_precise
        user.creation_date_time = now
      end