Class: AWS::S3::MultipartUploadCollection

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/aws/s3/multipart_upload_collection.rb

Overview

Represents the uploads in progress for a bucket.

Examples:

Finding uploads by prefix

bucket.multipart_uploads.with_prefix("photos/").
  map { |upload| upload.object.key }
# => ["photos/1.jpg", "photos/2.jpg", ...]

Browsing with a tree interface

bucket.multipart_uploads.with_prefix("photos").as_tree.
  children.select(&:branch?).map(&:prefix)
# => ["photos/2010", "photos/2011", ...]

See Also:

Instance Attribute Summary collapse

Attributes included from PrefixedCollection

#prefix

Method Summary

Methods included from PrefixedCollection

#with_prefix

Instance Attribute Details

#bucketBucket (readonly)

Returns The bucket in which the uploads are taking place.

Returns:

  • (Bucket)

    The bucket in which the uploads are taking place.



43
44
45
# File 'lib/aws/s3/multipart_upload_collection.rb', line 43

def bucket
  @bucket
end