Sha256: e45b1fa5ddc38004e58e6f7aa466b03eddb4c9d3c75577510cd5ee518a39bdda
Contents?: true
Size: 285 Bytes
Versions: 3
Compression:
Stored size: 285 Bytes
Contents
require 'digest/sha1' module CassandraObject module Identity class HashedNaturalKeyFactory < NaturalKeyFactory def next_key(object) NaturalKey.new(Digest::SHA1.hexdigest(attributes.map { |attribute| object[attribute] }.join(separator))) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems