lib/ruuid/mongoid/extensions/uuid.rb
# Convert the object from its Mongo-friendly Ruby type to this type.
#
# @param [BSON::Binary] object
#   The object to demongoize.
#
# @return [RUUID::UUID]
#   The demongoized UUID.
Convert the object from its Mongo-friendly Ruby type to this type.
Convert the object from its Mongo - friendly Ruby type to this type .
def demongoize(object)
            case object
            when BSON::Binary
              new(object.data)
            when ::String
              parse(object)
            else
              object
            end
          end
def demongoize ( object ) case object when BSON :: Binary new ( object . data ) when :: String parse ( object ) else object end end
Convert the object from its Mongo-friendly Ruby type to this type.
Convert the object from its Mongo - friendly Ruby type to this type .
The demongoized UUID.
The demongoized UUID .
RUUID::UUID
object
<not_specific>
<not_specific>
object The object to demongoize.
object The object to demongoize .