Class BSON::DBRef
In: lib/bson/types/dbref.rb
Parent: Object

A reference to another object in a MongoDB database.

Methods

new   to_hash   to_s  

Attributes

namespace  [R] 
object_id  [R] 

Public Class methods

Create a DBRef. Use this class in conjunction with DB#dereference.

@param [String] a collection name @param [ObjectId] an object id

@core dbrefs constructor_details

Public Instance methods

[Validate]