Class: Lite::Uxid::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/lite/uxid/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
25
26
27
# File 'lib/lite/uxid/configuration.rb', line 18

def initialize
  @hashid_charset = ALPHANUMERIC
  @hashid_salt = 1_369_136
  @nanoid_charset = WEB_SAFE
  @nanoid_size = 21
  @obfuscateid_spin = 0
  @ulid_charset = COCKFORDS_32
  @ulid_size = 26
  @uuid_version = 4
end

Instance Attribute Details

#hashid_charsetObject

Returns the value of attribute hashid_charset.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def hashid_charset
  @hashid_charset
end

#hashid_saltObject

Returns the value of attribute hashid_salt.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def hashid_salt
  @hashid_salt
end

#nanoid_charsetObject

Returns the value of attribute nanoid_charset.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def nanoid_charset
  @nanoid_charset
end

#nanoid_sizeObject

Returns the value of attribute nanoid_size.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def nanoid_size
  @nanoid_size
end

#obfuscateid_spinObject

Returns the value of attribute obfuscateid_spin.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def obfuscateid_spin
  @obfuscateid_spin
end

#ulid_charsetObject

Returns the value of attribute ulid_charset.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def ulid_charset
  @ulid_charset
end

#ulid_sizeObject

Returns the value of attribute ulid_size.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def ulid_size
  @ulid_size
end

#uuid_versionObject

Returns the value of attribute uuid_version.



12
13
14
# File 'lib/lite/uxid/configuration.rb', line 12

def uuid_version
  @uuid_version
end