Class: UUIDGen::UUID5
- Inherits:
-
NameBasedUUID
- Object
- UUID
- NameBasedUUID
- UUIDGen::UUID5
- Defined in:
- lib/uuidgen/uuid5.rb
Instance Attribute Summary
Attributes inherited from UUID
Instance Method Summary collapse
Methods inherited from NameBasedUUID
Methods inherited from UUID
Constructor Details
This class inherits a constructor from UUIDGen::NameBasedUUID
Instance Method Details
#uuid_hash(target) ⇒ Object
10 11 12 |
# File 'lib/uuidgen/uuid5.rb', line 10 def uuid_hash(target) Digest::SHA1.hexdigest(target)[0, 32] end |
#version ⇒ Object
6 7 8 |
# File 'lib/uuidgen/uuid5.rb', line 6 def version 5 end |