NAME

Zing::ID - Conditionally Unique Identifier

ABSTRACT

Conditionally Unique Identifier

SYNOPSIS

use Zing::ID;

my $id = Zing::ID->new;

# "$id"

DESCRIPTION

This package provides a globally unique identifier.

LIBRARIES

This package uses type constraints from:

Zing::Types

ATTRIBUTES

This package has the following attributes:

host

host(Str)

This attribute is read-only, accepts (Str) values, and is optional.

iota

iota(Int)

This attribute is read-only, accepts (Int) values, and is optional.

pid

pid(Int)

This attribute is read-only, accepts (Int) values, and is optional.

salt

salt(Str)

This attribute is read-only, accepts (Str) values, and is optional.

time

time(Int)

This attribute is read-only, accepts (Int) values, and is optional.

METHODS

This package implements the following methods:

string

string() : Str

The string method serializes the object properties and generates a globally unique identifier.

string example #1
# given: synopsis

$id->string;

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues