Class: AWS::S3::UploadedPart
- Inherits:
-
Object
- Object
- AWS::S3::UploadedPart
- Defined in:
- lib/aws/s3/uploaded_part.rb
Overview
Represents a part of a multipart upload that has been uploaded to S3.
Instance Attribute Summary collapse
-
#part_number ⇒ Integer
readonly
The part number.
-
#upload ⇒ MultipartUpload
readonly
The upload to which this belongs.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
-
#etag ⇒ String
The ETag of the part.
-
#last_modified ⇒ DateTime
The time at which the part was last modified.
-
#size ⇒ Integer
The size of the part as it currently exists in S3.
Instance Attribute Details
#part_number ⇒ Integer (readonly)
Returns The part number.
32 33 34 |
# File 'lib/aws/s3/uploaded_part.rb', line 32 def part_number @part_number end |
#upload ⇒ MultipartUpload (readonly)
Returns The upload to which this belongs.
29 30 31 |
# File 'lib/aws/s3/uploaded_part.rb', line 29 def upload @upload end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
41 42 43 44 45 |
# File 'lib/aws/s3/uploaded_part.rb', line 41 def ==(other) other.kind_of?(UploadedPart) and other.upload == upload and other.part_number == part_number end |
#etag ⇒ String
Returns The ETag of the part.
61 62 63 |
# File 'lib/aws/s3/uploaded_part.rb', line 61 def etag get_attribute(:etag) end |
#last_modified ⇒ DateTime
Returns The time at which the part was last modified.
56 57 58 |
# File 'lib/aws/s3/uploaded_part.rb', line 56 def last_modified get_attribute(:last_modified) end |
#size ⇒ Integer
Returns The size of the part as it currently exists in S3.
50 51 52 |
# File 'lib/aws/s3/uploaded_part.rb', line 50 def size get_attribute(:size) end |