def object_versions(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(bucket: @name)
        resp = @client.list_object_versions(options)
        resp.each_page do |page|
          batch = []
          page.data.versions_delete_markers.each do |v|
            batch << ObjectVersion.new(
              bucket_name: @name,
              object_key: v.key,
              id: v.version_id,
              data: v,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      ObjectVersion::Collection.new(batches)
    end
def object_versions(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(bucket: @name)
        resp = @client.list_object_versions(options)
        resp.each_page do |page|
          batch = []
          page.data.versions_delete_markers.each do |v|
            batch << ObjectVersion.new(
              bucket_name: @name,
              object_key: v.key,
              id: v.version_id,
              data: v,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      ObjectVersion::Collection.new(batches)
    end
@example Request syntax with placeholder values

   object_versions = bucket.object_versions({
     delimiter: "Delimiter",
     encoding_type: "url", # accepts url
     key_marker: "KeyMarker",
     prefix: "Prefix",
     version_id_marker: "VersionIdMarker",
   })
 @param [Hash] options ({})
 @option options [String] :delimiter
   A delimiter is a 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
   Specifies the key to start with when listing objects in a bucket.
 @option options [String] :prefix
   Limits the response to keys that begin with the specified prefix.
 @option options [String] :version_id_marker
   Specifies the object version you want to start listing from.
 @return [ObjectVersion::Collection]