Class | UUID |
In: |
lib/uuidtools/version.rb
lib/uuidtools.rb |
Parent: | Object |
UUIDTools was designed to be a simple library for generating any of the various types of UUIDs. It conforms to RFC 4122 whenever possible.
UUID.md5_create(UUID_DNS_NAMESPACE, "www.widgets.com") => #<UUID:0x287576 UUID:3d813cbb-47fb-32ba-91df-831e1593ac29> UUID.sha1_create(UUID_DNS_NAMESPACE, "www.widgets.com") => #<UUID:0x2a0116 UUID:21f7f8de-8051-5b89-8680-0195ef798b6a> UUID.timestamp_create => #<UUID:0x2adfdc UUID:64a5189c-25b3-11da-a97b-00c04fd430c8> UUID.random_create => #<UUID:0x19013a UUID:984265dc-4200-4f02-ae70-fe4f48964159>
clock_seq_hi_and_reserved | [RW] | |
clock_seq_low | [RW] | |
nodes | [RW] | |
time_hi_and_version | [RW] | |
time_low | [RW] | |
time_mid | [RW] |
Allows users to set the MAC address manually in cases where the MAC address cannot be obtained programatically.
Returns the IEEE 802 address used to generate this UUID or nil if a MAC address was not used.