class Attachie::FakeMultipartUpload
Public Class Methods
new(name, bucket, options, &block)
click to toggle source
Calls superclass method
# File lib/attachie/fake_driver.rb, line 6 def initialize(name, bucket, options, &block) super() @name = name @bucket = bucket block.call(self) if block_given? end
Public Instance Methods
abort_upload()
click to toggle source
# File lib/attachie/fake_driver.rb, line 30 def abort_upload; end
complete_upload()
click to toggle source
# File lib/attachie/fake_driver.rb, line 31 def complete_upload; end
data()
click to toggle source
# File lib/attachie/fake_driver.rb, line 24 def data synchronize do @data end end
upload_part(data)
click to toggle source
# File lib/attachie/fake_driver.rb, line 15 def upload_part(data) synchronize do @data ||= "" @data << data end true end