class Identifiable::Stylists::Alphanumeric
Public Class Methods
new(record:)
click to toggle source
# File lib/identifiable/stylists/alphanumeric.rb, line 6 def initialize(record:) @record = record end
Public Instance Methods
random_id()
click to toggle source
# File lib/identifiable/stylists/alphanumeric.rb, line 10 def random_id SecureRandom.alphanumeric(@record.class.identifiable_length) end