Method: Moped::BSON::ObjectId#to_s
- Defined in:
- lib/moped/bson/object_id.rb
#to_s ⇒ String Also known as: to_str
Get the string representation of the object.
165 166 167 |
# File 'lib/moped/bson/object_id.rb', line 165 def to_s data.unpack("H*")[0].force_encoding(Moped::BSON::UTF8_ENCODING) end |