class

NATS::NUID

Inherits Reference / Object

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
Source
new(random = Random.new)
Source

Class methods

next
Source

Instance methods

increment
Source
next
Source
prefix
Source
sequence
Source
to_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.

Source