Method: Mongo::Grid::File::Chunk#to_bson
- Defined in:
- lib/mongo/grid/file/chunk.rb
#to_bson(buffer = BSON::ByteBuffer.new, validating_keys = nil) ⇒ String
Conver the chunk to BSON for storage.
141 142 143 |
# File 'lib/mongo/grid/file/chunk.rb', line 141 def to_bson(buffer = BSON::ByteBuffer.new, validating_keys = nil) document.to_bson(buffer) end |