Module: GMO::PG::Util::OrderID

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

Constant Summary collapse

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

Class Method Summary collapse

Class Method Details

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



21
22
23
# File 'lib/gmo-pg/util.rb', line 21

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