Class: Uplink::UploadPart

Inherits:
Object
  • Object
show all
Defined in:
lib/uplink/upload.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#etagObject (readonly)

Returns the value of attribute etag.



137
138
139
# File 'lib/uplink/upload.rb', line 137

def etag
  @etag
end

#modifiedObject (readonly)

Returns the value of attribute modified.



137
138
139
# File 'lib/uplink/upload.rb', line 137

def modified
  @modified
end

#part_numberObject (readonly)

Returns the value of attribute part_number.



137
138
139
# File 'lib/uplink/upload.rb', line 137

def part_number
  @part_number
end

#sizeObject (readonly)

Returns the value of attribute size.



137
138
139
# File 'lib/uplink/upload.rb', line 137

def size
  @size
end