Sha256: 13a2c4d517b45c8557253040f35ca79874affea703a89a0718eb349eaa06d8ff
Contents?: true
Size: 285 Bytes
Versions: 184
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 { |a| object.attributes[a.to_s] }.join(separator))) end end end end
Version data entries
184 entries across 184 versions & 2 rubygems