Class: AWS::S3::UploadedPartCollection
- Inherits:
-
Object
- Object
- AWS::S3::UploadedPartCollection
- Includes:
- Core::Model, PaginatedCollection, Enumerable
- Defined in:
- lib/aws/s3/uploaded_part_collection.rb
Overview
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.
Instance Attribute Summary collapse
-
#upload ⇒ MultipartUpload
readonly
The upload to which the parts belong.
Attributes included from Core::Model
Instance Method Summary collapse
-
#[](number) ⇒ UploadedPart
An object representing the part with the given part number.
-
#initialize(upload, opts = {}) ⇒ UploadedPartCollection
constructor
A new instance of UploadedPartCollection.
Methods included from Core::Collection::Limitable
Methods included from Core::Collection
#each, #each_batch, #enum, #first, #in_groups_of, #page
Methods included from Core::Model
#client, #config_prefix, #inspect
Constructor Details
#initialize(upload, opts = {}) ⇒ UploadedPartCollection
Returns a new instance of UploadedPartCollection.
33 34 35 36 |
# File 'lib/aws/s3/uploaded_part_collection.rb', line 33 def initialize(upload, opts = {}) @upload = upload super end |
Instance Attribute Details
#upload ⇒ MultipartUpload (readonly)
Returns The upload to which the parts belong.
30 31 32 |
# File 'lib/aws/s3/uploaded_part_collection.rb', line 30 def upload @upload end |
Instance Method Details
#[](number) ⇒ UploadedPart
Returns An object representing the part with the given part number.
42 43 44 |
# File 'lib/aws/s3/uploaded_part_collection.rb', line 42 def [](number) UploadedPart.new(upload, number) end |