Class: BSON::DBRef
Overview
A reference to another object in a MongoDB database.
Instance Attribute Summary (collapse)
-
- (Object) namespace
readonly
Returns the value of attribute namespace.
-
- (Object) object_id
readonly
Returns the value of attribute object_id.
Instance Method Summary (collapse)
-
- (DBRef) initialize(namespace, object_id)
constructor
Create a DBRef.
- - (Object) to_hash
- - (Object) to_s
Constructor Details
Instance Attribute Details
- (Object) namespace (readonly)
Returns the value of attribute namespace
6 7 8 |
# File 'lib/bson/types/dbref.rb', line 6 def namespace @namespace end |
- (Object) object_id (readonly)
Returns the value of attribute object_id
6 7 8 |
# File 'lib/bson/types/dbref.rb', line 6 def object_id @object_id end |