Class: String

Inherits:
Object show all
Defined in:
lib/mongo_record/base.rb

Instance Method Summary collapse

Instance Method Details

#to_oidObject

Convert this String to an ObjectID.



25
26
27
# File 'lib/mongo_record/base.rb', line 25

def to_oid
  XGen::Mongo::Driver::ObjectID.from_string(self)
end