Module: Mince::HashyDb::PrimaryKey

Defined in:
lib/hashy_db/interface.rb

Class Method Summary collapse

Class Method Details

.generate(salt) ⇒ Object


245
246
247
# File 'lib/hashy_db/interface.rb', line 245

def self.generate(salt)
  Digest::SHA256.hexdigest("#{Time.now}#{salt}")[0..6]
end

.nameObject


241
242
243
# File 'lib/hashy_db/interface.rb', line 241

def self.name
  Config.primary_key
end