Module: GMO::PG::Util::MemberID

Defined in:
lib/gmo-pg/util.rb

Constant Summary collapse

AVAILABLE_CHARS =
[*('a'..'z'), *('A'..'Z'), *('0'..'9'), '-', '@', '_', '.']
MAX_LENGTH =
60

Class Method Summary collapse

Class Method Details

.generate(prefix: '', suffix: '', chars: AVAILABLE_CHARS, length: MAX_LENGTH) ⇒ Object



30
31
32
# File 'lib/gmo-pg/util.rb', line 30

def self.generate(prefix: '', suffix: '', chars: AVAILABLE_CHARS, length: MAX_LENGTH)
  RandomString.generate(prefix: prefix, suffix: suffix, chars: chars, length: length)
end