Class: Toy::Identity::UUIDKeyFactory

Inherits:
AbstractKeyFactory show all
Defined in:
lib/toy/identity/uuid_key_factory.rb

Instance Method Summary collapse

Methods inherited from AbstractKeyFactory

#eql?, #to_key

Instance Method Details

#key_typeObject



4
5
6
# File 'lib/toy/identity/uuid_key_factory.rb', line 4

def key_type
  String
end

#next_key(object) ⇒ Object



8
9
10
# File 'lib/toy/identity/uuid_key_factory.rb', line 8

def next_key(object)
  SimpleUUID::UUID.new.to_guid
end