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 =
Mapping from mode to stream class.
{ READ_MODE => Read, WRITE_MODE => Write }.freeze
-
READ_MODE =
The symbol for opening a read stream.
:r
-
WRITE_MODE =
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
.