Class: Lite::Uxid::Configuration
- Inherits:
-
Object
- Object
- Lite::Uxid::Configuration
- Defined in:
- lib/lite/uxid/configuration.rb
Instance Attribute Summary collapse
-
#hashid_charset ⇒ Object
Returns the value of attribute hashid_charset.
-
#hashid_salt ⇒ Object
Returns the value of attribute hashid_salt.
-
#nanoid_charset ⇒ Object
Returns the value of attribute nanoid_charset.
-
#nanoid_size ⇒ Object
Returns the value of attribute nanoid_size.
-
#obfuscateid_spin ⇒ Object
Returns the value of attribute obfuscateid_spin.
-
#ulid_charset ⇒ Object
Returns the value of attribute ulid_charset.
-
#ulid_size ⇒ Object
Returns the value of attribute ulid_size.
-
#uuid_version ⇒ Object
Returns the value of attribute uuid_version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_charset ⇒ Object
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_salt ⇒ Object
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_charset ⇒ Object
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_size ⇒ Object
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_spin ⇒ Object
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_charset ⇒ Object
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_size ⇒ Object
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_version ⇒ Object
Returns the value of attribute uuid_version.
12 13 14 |
# File 'lib/lite/uxid/configuration.rb', line 12 def uuid_version @uuid_version end |