Module: Mongo::Grid::FSBucket::Stream
| Relationships & Source Files | |
| Namespace Children | |
|
Classes:
| |
| Defined in: | lib/mongo/grid/stream.rb, lib/mongo/grid/stream/read.rb, lib/mongo/grid/stream/write.rb |
Overview
A stream that reads and writes files from/to the ::Mongo::Grid::FSBucket.
Constant Summary
-
MODE_MAP =
# File 'lib/mongo/grid/stream.rb', line 44
Mapping from mode to stream class.
{ READ_MODE => Read, WRITE_MODE => Write }.freeze -
READ_MODE =
# File 'lib/mongo/grid/stream.rb', line 34
The symbol for opening a read stream.
:r
-
WRITE_MODE =
# File 'lib/mongo/grid/stream.rb', line 39
The symbol for opening a write stream.
:w
Instance Method Summary
-
#get(fs, mode, options = {}) ⇒ Stream::Read, Stream::Write
Get a stream for reading/writing files from/to the
::Mongo::Grid::FSBucket.
Instance Method Details
#get(fs, mode, options = {}) ⇒ Stream::Read, Stream::Write
Get a stream for reading/writing files from/to the ::Mongo::Grid::FSBucket.