Method: Mongo::Grid::File::Chunk#id

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

#idBSON::ObjectId

Get the chunk id.

Examples:

Get the chunk id.

chunk.id

Returns:

  • (BSON::ObjectId)

    The chunk id.

Since:

  • 2.0.0



88
89
90
# File 'lib/mongo/grid/file/chunk.rb', line 88

def id
  document[:_id]
end