Method: BSON::DBRef#as_json

Defined in:
lib/bson/dbref.rb

#as_json(*args) ⇒ Hash

Get the DBRef as a JSON document

Examples:

Get the DBRef as a JSON hash.

dbref.as_json

Returns:

  • (Hash)

    The max key as a JSON hash.



60
61
62
# File 'lib/bson/dbref.rb', line 60

def as_json(*args)
  {}.update(self)
end