Method: S3sync::ProgressStream#initialize

Defined in:
lib/s3sync/HTTPStreaming.rb

#initialize(s, size = 0) ⇒ ProgressStream

Returns a new instance of ProgressStream.



54
55
56
57
58
59
60
61
62
63
# File 'lib/s3sync/HTTPStreaming.rb', line 54

def initialize(s, size=0)
	@start = @last = Time.new
	@total = size
	@transferred = 0
	@closed = false
	@printed = false
	@innerStream = s
	super(@innerStream)
	__setobj__(@innerStream)
end