class BSON::ObjectId
Public: A monkey-patch for the BSON::ObjectId
class which introduces an as_json
method.
Public Instance Methods
as_json(*args)
click to toggle source
Public: Get produce a JSON representation of this ObjectId
.
Since we don't want to produce a JSON Object
for every ID, this method instead just returns the String _id value within this object.
Returns a String containing the value of this ObjectId
.
# File lib/frecon/base/bson.rb, line 24 def as_json(*args) to_s end