Class: OpaqueId::Configuration
- Inherits:
-
Object
- Object
- OpaqueId::Configuration
- Defined in:
- lib/opaque_id/configuration.rb
Instance Attribute Summary collapse
-
#default_alphabet ⇒ Object
Returns the value of attribute default_alphabet.
-
#default_column ⇒ Object
Returns the value of attribute default_column.
-
#default_length ⇒ Object
Returns the value of attribute default_length.
-
#default_max_retry ⇒ Object
Returns the value of attribute default_max_retry.
-
#default_purge_chars ⇒ Object
Returns the value of attribute default_purge_chars.
-
#default_require_letter_start ⇒ Object
Returns the value of attribute default_require_letter_start.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
8 9 10 11 12 13 14 15 |
# File 'lib/opaque_id/configuration.rb', line 8 def initialize @default_length = 18 @default_alphabet = OpaqueId::SLUG_LIKE_ALPHABET @default_column = :opaque_id @default_require_letter_start = false @default_purge_chars = [] @default_max_retry = 3 end |
Instance Attribute Details
#default_alphabet ⇒ Object
Returns the value of attribute default_alphabet.
5 6 7 |
# File 'lib/opaque_id/configuration.rb', line 5 def default_alphabet @default_alphabet end |
#default_column ⇒ Object
Returns the value of attribute default_column.
5 6 7 |
# File 'lib/opaque_id/configuration.rb', line 5 def default_column @default_column end |
#default_length ⇒ Object
Returns the value of attribute default_length.
5 6 7 |
# File 'lib/opaque_id/configuration.rb', line 5 def default_length @default_length end |
#default_max_retry ⇒ Object
Returns the value of attribute default_max_retry.
5 6 7 |
# File 'lib/opaque_id/configuration.rb', line 5 def default_max_retry @default_max_retry end |
#default_purge_chars ⇒ Object
Returns the value of attribute default_purge_chars.
5 6 7 |
# File 'lib/opaque_id/configuration.rb', line 5 def default_purge_chars @default_purge_chars end |
#default_require_letter_start ⇒ Object
Returns the value of attribute default_require_letter_start.
5 6 7 |
# File 'lib/opaque_id/configuration.rb', line 5 def default_require_letter_start @default_require_letter_start end |