Sha256: 3a7840eca8b6db59120be1aeecdee143306d29c15334120275805651531b2f13

Contents?: true

Size: 214 Bytes

Versions: 8

Compression:

Stored size: 214 Bytes

Contents

module Toy
  module Identity
    class ObjectIdKeyFactory < AbstractKeyFactory
      def key_type
        BSON::ObjectId
      end

      def next_key(object)
        BSON::ObjectId.new
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
toystore-mongo-0.12.0 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.11.0 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.10.0 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.9.0 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.8.2 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.8.1 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.8.0 lib/toy/identity/object_id_key_factory.rb
toystore-mongo-0.7.0 lib/toy/identity/object_id_key_factory.rb