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: change_milestone_service_shared_examples.rb
    path of file: ./repos/gitlabhq/spec/support/shared_examples/services/resource_events
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

RSpec.shared_exam
    
  def set_timebox(timebox_event_class, timebox)
    case timebox_event_class.name
    when 'ResourceMilestoneEvent'
      resource.milestone = timebox
    when 'ResourceIterationEvent'
      resource.iteration = timebox
    end