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: update_runner_service.rb
    path of file: ./repos/gitlabhq/app/services/ci/runners
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Ci
  module Runners
    class UpdateRunnerService
      attr_reader :runner

      def initialize(runner)
        @runner = runner
    
    
      def execute(params)
        params[:active] = !params.delete(:paused) if params.include?(:paused)

        if runner.update(params)
          runner.tick_runner_queue
          ServiceResponse.success
        else
          ServiceResponse.error(message: runner.errors.full_messages)
        end