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: daily_note_creator.rb
    path of file: ./repos/i-diario/app/services
    
    the code of the file until where you have to start completion: class DailyNoteCreator
  attr_reader :daily_note

  def initialize(params)
    @p
    
  def find_or_create
    @daily_note = DailyNote.find_or_initialize_by(@params)

    if @daily_note.new_record?
      student_enrollments = fetch_student_enrollments || []
      student_ids = student_enrollments.map(&:student_id).uniq
      student_ids.each do |student_id|
        if student = Student.find_by_id(student_id)
          @daily_note.students.build(student_id: student.id, daily_note: @daily_note, active: true)
        end
      end