Class: BSON::DBRef
Instance Attribute Summary collapse
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
-
#object_id ⇒ Object
readonly
Returns the value of attribute object_id.
Instance Method Summary collapse
-
#initialize(namespace, object_id) ⇒ DBRef
constructor
Create a DBRef.
- #to_hash ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(namespace, object_id) ⇒ DBRef
Create a DBRef. Use this class in conjunction with DB#dereference.
117 118 119 120 |
# File 'lib/jmongo/mongo/bson.rb', line 117 def initialize(namespace, object_id) @namespace = namespace @object_id = object_id end |
Instance Attribute Details
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
109 110 111 |
# File 'lib/jmongo/mongo/bson.rb', line 109 def namespace @namespace end |
#object_id ⇒ Object (readonly)
Returns the value of attribute object_id.
109 110 111 |
# File 'lib/jmongo/mongo/bson.rb', line 109 def object_id @object_id end |