class Fog::AWS::Storage::File::PartList
Public Class Methods
new(parts = [])
click to toggle source
# File lib/fog/aws/models/storage/file.rb, line 41 def initialize(parts = []) @parts = parts @mutex = Mutex.new end
Public Instance Methods
clear!()
click to toggle source
# File lib/fog/aws/models/storage/file.rb, line 54 def clear! @mutex.synchronize { @parts.clear } end
push(part)
click to toggle source
# File lib/fog/aws/models/storage/file.rb, line 46 def push(part) @mutex.synchronize { @parts.push(part) } end
shift()
click to toggle source
# File lib/fog/aws/models/storage/file.rb, line 50 def shift @mutex.synchronize { @parts.shift } end
size()
click to toggle source
# File lib/fog/aws/models/storage/file.rb, line 58 def size @mutex.synchronize { @parts.size } end
to_a()
click to toggle source
# File lib/fog/aws/models/storage/file.rb, line 62 def to_a @mutex.synchronize { @parts.dup } end