class Aws::S3::FileDownloader::MultipartProgress
@api private
def call(part_number, bytes_received, total)
def call(part_number, bytes_received, total) # part numbers start at 1 @bytes_received[part_number - 1] = bytes_received # part size may not be known until we get the first response @part_sizes[part_number - 1] ||= total @progress_callback.call(@bytes_received, @part_sizes, @total_size) end
def initialize(parts, total_size, progress_callback)
def initialize(parts, total_size, progress_callback) @bytes_received = Array.new(parts.size, 0) @part_sizes = parts.map(&:size) @total_size = total_size @progress_callback = progress_callback end