Sha256: 5a31a513644d38c06c82139d93342a39ee7db6e80797976c637681a7b56e033e

Contents?: true

Size: 181 Bytes

Versions: 4

Compression:

Stored size: 181 Bytes

Contents

class PoroRepository::RecordMetaData

  def id
    @id ||= random_id
  end

  private

  def random_id
    Digest::SHA1.hexdigest("#{rand}#{rand}#{rand}#{Time.now.to_i}")
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
poro_repository-0.2.0 lib/poro_repository/record_meta_data.rb
poro_repository-0.1.2 lib/poro_repository/record_meta_data.rb
poro_repository-0.0.2 lib/poro_repository/record_meta_data.rb
poro_repository-0.0.1 lib/poro_repository/record_meta_data.rb