Class: OohAuth::KeyGenerators::Password

Inherits:
String
  • Object
show all
Defined in:
lib/ooh-auth/key_generators.rb

Overview

A memorable password based on the pattern XXadjectiveNouns, for example 67blueTeeth or 267noisySandboxes.

Class Method Summary collapse

Class Method Details

.gen(len = 0) ⇒ Object



31
32
33
# File 'lib/ooh-auth/key_generators.rb', line 31

def self.gen(len=0)
  return "#{rand(999)}#{ADJECTIVES[rand(ADJECTIVES.length)]}#{NOUNS[rand(NOUNS.length)].capitalize}"
end