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: disbursement.rb
    path of file: ./repos/coursemology2/app/models/course/experience_points
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
class Course::ExperiencePoints::Disbursement
  include ActiveModel::Model
  include ActiveModel::Validations

  # @!attribute [rw] reason
  #   This reason for the disbursement.
  #
    
  def experience_points_records_attributes=(attributes)
    valid_attributes = attributes.values.select(&method(:valid_points_record_attributes?))
    @experience_points_records = valid_attributes.map do |hash|
      hash[:reason] = reason
      Course::ExperiencePointsRecord.new(hash)
    end
    attributes
  end