Class: UUID4R

Inherits:
Object
  • Object
show all
Defined in:
ext/uuid4r.c

Defined Under Namespace

Classes: UUID4RCommon, UUID4Rv1, UUID4Rv3, UUID4Rv4, UUID4Rv5

Class Method Summary collapse

Class Method Details

.importObject



155
156
157
# File 'ext/uuid4r.c', line 155

VALUE
uuid4r_import(self, format, str)
VALUE self, format, str;

.UUID4R::uuid(1, format = :str) ⇒ Object .UUID4R::uuid(3, namespace, namespace_str, format = :str) ⇒ Object .UUID4R::uuid(4, format = :str) ⇒ Object .UUID4R::uuid(5, namespace, namespace_str, format = :str) ⇒ Object

Generates a DCE 1.1 with a specified version: 1, 3, 4 or 5. Returns an uuid as a specified format (:str, :bin, :txt).



258
259
260
# File 'ext/uuid4r.c', line 258

VALUE
uuid4r_uuid(argc, argv, self)
int argc;

.UUID4R::uuid_v1(format = :str) ⇒ Object

Generates a DCE 1.1 v1 UUID from system environment. Returns an uuid as a specified format (:str, :bin, :txt).



333
334
335
# File 'ext/uuid4r.c', line 333

VALUE
uuid4r_uuid_v1(argc, argv, self)
int argc;

.UUID4R::uuid_v3(namespace, namespace_str, format = :str) ⇒ Object

Generates a DCE 1.1 v3 UUID with a name based with MD5. Returns an uuid as a specified format (:str, :bin, :txt).



375
376
377
# File 'ext/uuid4r.c', line 375

VALUE
uuid4r_uuid_v3(argc, argv, self)
int argc;

.UUID4R::uuid_v4(format = :str) ⇒ Object

Generates a DCE 1.1 v4 UUID based a random number. Returns an uuid as a specified format (:str, :bin, :txt).



354
355
356
# File 'ext/uuid4r.c', line 354

VALUE
uuid4r_uuid_v4(argc, argv, self)
int argc;

.UUID4R::uuid_v5(namespace, namespace_str, format = :str) ⇒ Object

Generates a DCE 1.1 v5 UUID with a name based with SHA-1. Returns an uuid as a specified format (:str, :bin, :txt).



399
400
401
# File 'ext/uuid4r.c', line 399

VALUE
uuid4r_uuid_v5(argc, argv, self)
int argc;