Class: Vzaar::Uploaders::S3::VirtualFile
- Inherits:
-
StringIO
- Object
- StringIO
- Vzaar::Uploaders::S3::VirtualFile
- Defined in:
- lib/vzaar/uploaders/s3.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(file, chunk_size) ⇒ VirtualFile
constructor
A new instance of VirtualFile.
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
#path ⇒ Object (readonly)
Returns the value of attribute path.
15 16 17 |
# File 'lib/vzaar/uploaders/s3.rb', line 15 def path @path end |