Class: Hashid::Rails::Configuration
- Inherits:
-
Object
- Object
- Hashid::Rails::Configuration
- Defined in:
- lib/hashid/rails.rb
Instance Attribute Summary collapse
-
#alphabet ⇒ Object
Returns the value of attribute alphabet.
-
#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.
92 93 94 95 96 |
# File 'lib/hashid/rails.rb', line 92 def initialize @secret = '' @length = 6 @alphabet = nil end |
Instance Attribute Details
#alphabet ⇒ Object
Returns the value of attribute alphabet.
90 91 92 |
# File 'lib/hashid/rails.rb', line 90 def alphabet @alphabet end |
#length ⇒ Object
Returns the value of attribute length.
90 91 92 |
# File 'lib/hashid/rails.rb', line 90 def length @length end |
#secret ⇒ Object
Returns the value of attribute secret.
90 91 92 |
# File 'lib/hashid/rails.rb', line 90 def secret @secret end |