Method: Mongo::Grid::File::Chunk#files_id

Defined in:
lib/mongo/grid/file/chunk.rb

#files_idBSON::ObjectId

Get the files id.

Examples:

Get the files id.

chunk.files_id

Returns:

  • (BSON::ObjectId)

    The files id.

Since:

  • 2.0.0



100
101
102
# File 'lib/mongo/grid/file/chunk.rb', line 100

def files_id
  document[:files_id]
end