Class: LemonWay::Generators::Id

Inherits:
Object
  • Object
show all
Defined in:
lib/lemon_way/generators/id.rb

Class Method Summary collapse

Class Method Details

.generate(length: 20) ⇒ Object



7
8
9
# File 'lib/lemon_way/generators/id.rb', line 7

def generate(length: 20)
  rand(10**length).to_s
end