class Plogger::IdGenerator

Public Class Methods

generate() click to toggle source
# File lib/plogger/id_generator.rb, line 3
def self.generate
  [('a'..'z'), ('A'..'Z'), (0..9)].map(&:to_a).flatten.shuffle[0, id_length].join
end
id_length() click to toggle source
# File lib/plogger/id_generator.rb, line 7
def self.id_length
  10
end