module HumanizedId

Constants

CHARSET
DEFAULT_GENERATION_LENGTH
Error
SIMILAR_NUMBERS_LETTERS
VERSION
VOWELS

Public Class Methods

generate_random(prefix: '', length: DEFAULT_GENERATION_LENGTH) click to toggle source
# File lib/humanized_id.rb, line 13
def generate_random(prefix: '', length: DEFAULT_GENERATION_LENGTH)
  RandGenerator.new(prefix: prefix, length: length).generate_random_humanized_id
end
humanize(id:, min_length: nil, prefix: '') click to toggle source
# File lib/humanized_id.rb, line 9
def humanize(id:, min_length: nil, prefix: '')
  Humanizer.new(id: id, min_length: min_length, prefix: prefix).generate_humanized_id
end