class Identifier::UUID::Random
Public Class Methods
configure(receiver, attr_name=nil)
click to toggle source
# File lib/identifier/uuid/random.rb, line 16 def self.configure(receiver, attr_name=nil) instance = new if attr_name.nil? if receiver.respond_to?(:identifier) attr_name = :identifier else attr_name = :uuid end end receiver.send "#{attr_name}=", instance instance end
get()
click to toggle source
# File lib/identifier/uuid/random.rb, line 8 def self.get UUID.format(raw) end
raw()
click to toggle source
# File lib/identifier/uuid/random.rb, line 12 def self.raw SecureRandom.uuid end
Public Instance Methods
get()
click to toggle source
# File lib/identifier/uuid/random.rb, line 4 def get self.class.get end