class NATS::NUID
- NATS::NUID
- Reference
- Object
Defined in:
nuid.crConstant Summary
-
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
Class Method Summary
Instance Method Summary
- #increment : Int64
- #next
- #prefix : Bytes
- #sequence : Atomic(Int64)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Class Method Detail
Instance Method Detail
def to_s
#
Description copied from class Object
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.