Method: UUIDTools::UUID#version

Defined in:
lib/uuidtools.rb

#versionObject

Returns the UUID version type. Possible values: 1 - Time-based with unique or random host identifier 2 - DCE Security version (with POSIX UIDs) 3 - Name-based (MD5 hash) 4 - Random 5 - Name-based (SHA-1 hash)



392
393
394
# File 'lib/uuidtools.rb', line 392

def version
  return (time_hi_and_version >> 12)
end