Class: Hashid::Rails::Configuration
- Inherits:
-
Object
- Object
- Hashid::Rails::Configuration
- Defined in:
- lib/hashid/rails/configuration.rb
Instance Attribute Summary collapse
-
#alphabet ⇒ Object
Returns the value of attribute alphabet.
-
#disable_find ⇒ Object
Returns the value of attribute disable_find.
-
#length ⇒ Object
Returns the value of attribute length.
-
#secret ⇒ Object
Returns the value of attribute secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 |
# File 'lib/hashid/rails/configuration.rb', line 6 def initialize @secret = "" @length = 6 @alphabet = nil @disable_find = false end |
Instance Attribute Details
#alphabet ⇒ Object
Returns the value of attribute alphabet.
4 5 6 |
# File 'lib/hashid/rails/configuration.rb', line 4 def alphabet @alphabet end |
#disable_find ⇒ Object
Returns the value of attribute disable_find.
4 5 6 |
# File 'lib/hashid/rails/configuration.rb', line 4 def disable_find @disable_find end |
#length ⇒ Object
Returns the value of attribute length.
4 5 6 |
# File 'lib/hashid/rails/configuration.rb', line 4 def length @length end |
#secret ⇒ Object
Returns the value of attribute secret.
4 5 6 |
# File 'lib/hashid/rails/configuration.rb', line 4 def secret @secret end |