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: legacy_signer.rb
    path of file: ./repos/aws-sdk-ruby/gems/aws-sdk-s3/lib/aws-sdk-s3
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'set'
require 'time'
require 'openssl'
require 'cgi'
require 'aws-sdk-core/query'

module Aws
  module S3
    # @api private
    class LegacySigner

      SIGNED
    
      def initialize(credentials, params, force_path_style)
        @credentials = credentials.credentials
        @params = Query::ParamList.new
        params.each_pair do |param_name, param_value|
          @params.set(param_name, param_value)
        end
        @force_path_style = force_path_style
      end