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: request_validator.rb
    path of file: ./repos/graphiti/lib/graphiti
    
    the code of the file until where you have to start completion: module Graphiti
  class RequestValidator
    delegate :validate,
      :valid
    
      def self.create(root_resource, raw_params, action)
        case action
        when :update
          RequestValidators::UpdateValidator
        else
          RequestValidators::Validator
        end.new(root_resource, raw_params, action)
      end