Class: Toy::Identity::ObjectIdKeyFactory
- Inherits:
-
AbstractKeyFactory
- Object
- AbstractKeyFactory
- Toy::Identity::ObjectIdKeyFactory
- Defined in:
- lib/toy/identity/object_id_key_factory.rb
Instance Method Summary collapse
Instance Method Details
#key_type ⇒ Object
4 5 6 |
# File 'lib/toy/identity/object_id_key_factory.rb', line 4 def key_type BSON::ObjectId end |
#next_key(object) ⇒ Object
8 9 10 |
# File 'lib/toy/identity/object_id_key_factory.rb', line 8 def next_key(object) BSON::ObjectId.new end |