def objects(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(bucket: @name)
        resp = @client.list_objects(options)
        resp.each_page do |page|
          batch = []
          page.data.contents.each do |c|
            batch << ObjectSummary.new(
              bucket_name: @name,
              key: c.key,
              data: c,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      ObjectSummary::Collection.new(batches)
    end
def objects(options = {})
      batches = Enumerator.new do |y|
        options = options.merge(bucket: @name)
        resp = @client.list_objects(options)
        resp.each_page do |page|
          batch = []
          page.data.contents.each do |c|
            batch << ObjectSummary.new(
              bucket_name: @name,
              key: c.key,
              data: c,
              client: @client
            )
          end
          y.yield(batch)
        end
      end
      ObjectSummary::Collection.new(batches)
    end
@example Request syntax with placeholder values

   objects = bucket.objects({
     delimiter: "Delimiter",
     encoding_type: "url", # accepts url
     prefix: "Prefix",
     request_payer: "requester", # accepts requester
   })
 @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] :prefix
   Limits the response to keys that begin with the specified prefix.
 @option options [String] :request_payer
   Confirms that the requester knows that she or he will be charged for
   the list objects request. Bucket owners need not specify this
   parameter in their requests.
 @return [ObjectSummary::Collection]