Class: Vzaar::Uploaders::S3::VirtualFile

Inherits:
StringIO
  • Object
show all
Defined in:
lib/vzaar/uploaders/s3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, chunk_size) ⇒ VirtualFile



16
17
18
19
# File 'lib/vzaar/uploaders/s3.rb', line 16

def initialize(file, chunk_size)
  @path = File.basename file.path
  super file.read(chunk_size)
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



15
16
17
# File 'lib/vzaar/uploaders/s3.rb', line 15

def path
  @path
end