Class: Uplink::UploadPart
- Inherits:
-
Object
- Object
- Uplink::UploadPart
- Defined in:
- lib/uplink/upload.rb
Instance Attribute Summary collapse
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#modified ⇒ Object
readonly
Returns the value of attribute modified.
-
#part_number ⇒ Object
readonly
Returns the value of attribute part_number.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
Instance Method Summary collapse
-
#initialize(upload_part_result, upload_part = nil) ⇒ UploadPart
constructor
A new instance of UploadPart.
Constructor Details
#initialize(upload_part_result, upload_part = nil) ⇒ UploadPart
Returns a new instance of UploadPart.
139 140 141 |
# File 'lib/uplink/upload.rb', line 139 def initialize(upload_part_result, upload_part = nil) init_attributes(upload_part_result.nil? || upload_part_result.null? ? upload_part : upload_part_result[:part]) end |
Instance Attribute Details
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
137 138 139 |
# File 'lib/uplink/upload.rb', line 137 def etag @etag end |
#modified ⇒ Object (readonly)
Returns the value of attribute modified.
137 138 139 |
# File 'lib/uplink/upload.rb', line 137 def modified @modified end |
#part_number ⇒ Object (readonly)
Returns the value of attribute part_number.
137 138 139 |
# File 'lib/uplink/upload.rb', line 137 def part_number @part_number end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
137 138 139 |
# File 'lib/uplink/upload.rb', line 137 def size @size end |