lib/mongo/dbref.rb
def as_json(*args)
      document = { COLLECTION => collection, ID => id }
      document.merge!(DATABASE => database) if database
      document
    end
# Get the DBRef as a JSON document
#
# @example Get the DBRef as a JSON hash.
#   dbref.as_json
#
# @return [ Hash ] The max key as a JSON hash.
#
# @since 2.1.0
Get the DBRef as a JSON document
Get the DBRef as a JSON document
def as_json(*args)
      document = { COLLECTION => collection, ID => id }
      document.merge!(DATABASE => database) if database
      document
    end
def as_json ( * args ) document = { COLLECTION => collection , ID => id } document . merge! ( DATABASE => database ) if database document end
Get the DBRef as a JSON document
Get the DBRef as a JSON document
The max key as a JSON hash.
The max key as a JSON hash .
 Hash 
args
example
Get the DBRef as a JSON hash. dbref.as_json
Get the DBRef as a JSON hash . dbref . as_json
since
None