NATS::NUID
Constants
BASE = 62
DIGITS = "#{("0".."9").join}#{("A".."Z").join}#{("a".."z").join}".to_slice
MAX_INCREMENT = 333_i64
MAX_SEQUENCE = 839299365868340224_i64
MIN_INCREMENT = 33_i64
PREFIX_LENGTH = 12
SEQUENCE_LENGTH = 10
TOTAL_LENGTH = PREFIX_LENGTH + SEQUENCE_LENGTH
Constructors
global
SourceClass methods
next
SourceInstance methods
increment
Sourcenext
Sourceprefix
Sourcesequence
Sourceto_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.