Class: Vos::Drivers::S3VfsStorage::Writer
- Inherits:
-
Object
- Object
- Vos::Drivers::S3VfsStorage::Writer
- Defined in:
- lib/vos/drivers/s3_vfs_storage.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize ⇒ Writer
constructor
A new instance of Writer.
- #write(data) ⇒ Object
Constructor Details
#initialize ⇒ Writer
Returns a new instance of Writer.
9 10 11 |
# File 'lib/vos/drivers/s3_vfs_storage.rb', line 9 def initialize @data = "" end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/vos/drivers/s3_vfs_storage.rb', line 8 def data @data end |
Instance Method Details
#write(data) ⇒ Object
13 14 15 |
# File 'lib/vos/drivers/s3_vfs_storage.rb', line 13 def write data @data << data end |