Class AWS::S3::UploadedPartCollection
In: lib/aws/s3/uploaded_part_collection.rb
Parent: Object

Represents the collection of parts that have been uploaded for a given multipart upload. You can get an instance of this class by calling {MultipartUpload#parts}.

@example Get the total size of the uploaded parts

 upload.parts.inject(0) { |sum, part| sum + part.size }

Methods

Included Modules

Enumerable Core::Model PaginatedCollection

Attributes

upload  [R]  @return [MultipartUpload] The upload to which the parts belong.

Public Class methods

Public Instance methods

@return [UploadedPart] An object representing the part with

  the given part number.

@param [Integer] number The part number.

Protected Instance methods

[Validate]