Class: Hashid::Rails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/hashid/rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#alphabetObject

Returns the value of attribute alphabet.



90
91
92
# File 'lib/hashid/rails.rb', line 90

def alphabet
  @alphabet
end

#lengthObject

Returns the value of attribute length.



90
91
92
# File 'lib/hashid/rails.rb', line 90

def length
  @length
end

#secretObject

Returns the value of attribute secret.



90
91
92
# File 'lib/hashid/rails.rb', line 90

def secret
  @secret
end