def multipart_uploads(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(bucket: @name)
        resp = @client.list_multipart_uploads(options)
        resp.each_page do |page|
          batch = []
          page.data.uploads.each do |u|
            batch << MultipartUpload.new(
              bucket_name: @name,
              object_key: u.key,
              id: u.upload_id,
              data: u,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      MultipartUpload::Collection.new(batches)
    end
def multipart_uploads(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(bucket: @name)
        resp = @client.list_multipart_uploads(options)
        resp.each_page do |page|
          batch = []
          page.data.uploads.each do |u|
            batch << MultipartUpload.new(
              bucket_name: @name,
              object_key: u.key,
              id: u.upload_id,
              data: u,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      MultipartUpload::Collection.new(batches)
    end
@example Request syntax with placeholder values

   multipart_uploads = bucket.multipart_uploads({
     delimiter: "Delimiter",
     encoding_type: "url", # accepts url
     key_marker: "KeyMarker",
     prefix: "Prefix",
     upload_id_marker: "UploadIdMarker",
   })
 @param [Hash] options ({})
 @option options [String] :delimiter
   Character you use to group keys.
 @option options [String] :encoding_type
   Requests Amazon S3 to encode the object keys in the response and
   specifies the encoding method to use. An object key may contain any
   Unicode character; however, XML 1.0 parser cannot parse some
   characters, such as characters with an ASCII value from 0 to 10. For
   characters that are not supported in XML 1.0, you can add this
   parameter to request that Amazon S3 encode the keys in the response.
 @option options [String] :key_marker
   Together with upload-id-marker, this parameter specifies the multipart
   upload after which listing should begin.
 @option options [String] :prefix
   Lists in-progress uploads only for those keys that begin with the
   specified prefix.
 @option options [String] :upload_id_marker
   Together with key-marker, specifies the multipart upload after which
   listing should begin. If key-marker is not specified, the
   upload-id-marker parameter is ignored.
 @return [MultipartUpload::Collection]