class URI::URN::UUID
Constants
- NSS_PATTERN
Public Class Methods
generate()
click to toggle source
Generate UUID
and build URI::URN::UUID
with it
Currently only version 4 is supported
# File lib/uri/urn/uuid.rb, line 15 def self.generate require 'securerandom' unless defined? SecureRandom build(nss: SecureRandom.uuid) end
Public Instance Methods
normalize!()
click to toggle source
Calls superclass method
URI::URN::Generic#normalize!
# File lib/uri/urn/uuid.rb, line 20 def normalize! super set_nss(self.nss.downcase) end