class BSON::DBRef

def as_json(*args)

Returns:
  • (Hash) - The max key as a JSON hash.

Other tags:
    Example: Get the DBRef as a JSON hash. -
def as_json(*args)
  {}.update(self)
end