Class: Aws::S3::FileDownloader::PartList Private

Inherits:
Object
  • Object
show all
Includes:
Enumerable
Defined in:
lib/aws-sdk-s3/file_downloader.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(parts = []) ⇒ PartList

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of PartList.



214
215
216
217
# File 'lib/aws-sdk-s3/file_downloader.rb', line 214

def initialize(parts = [])
  @parts = parts
  @mutex = Mutex.new
end

Instance Method Details

#clear!Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



227
228
229
# File 'lib/aws-sdk-s3/file_downloader.rb', line 227

def clear!
  @mutex.synchronize { @parts.clear }
end

#each(&block) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



231
232
233
# File 'lib/aws-sdk-s3/file_downloader.rb', line 231

def each(&block)
  @mutex.synchronize { @parts.each(&block) }
end

#shiftObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



219
220
221
# File 'lib/aws-sdk-s3/file_downloader.rb', line 219

def shift
  @mutex.synchronize { @parts.shift }
end

#sizeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



223
224
225
# File 'lib/aws-sdk-s3/file_downloader.rb', line 223

def size
  @mutex.synchronize { @parts.size }
end