Class: RuCaptcha::Configuration
- Inherits:
-
Object
- Object
- RuCaptcha::Configuration
- Defined in:
- lib/rucaptcha/configuration.rb
Instance Attribute Summary collapse
-
#cache_limit ⇒ Object
Number of Captcha codes limit set 0 to disable limit and file cache, default: 100.
-
#expires_in ⇒ Object
session expire time, default 2 minutes.
-
#font_size ⇒ Object
Image font size, default 45.
-
#height ⇒ Object
TODO: remove height, width in 0.3.0.
-
#implode ⇒ Object
implode, default 0.4.
-
#len ⇒ Object
Number of chars, default 4.
-
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white].
-
#width ⇒ Object
TODO: remove height, width in 0.3.0.
Instance Attribute Details
#cache_limit ⇒ Object
Number of Captcha codes limit set 0 to disable limit and file cache, default: 100
13 14 15 |
# File 'lib/rucaptcha/configuration.rb', line 13 def cache_limit @cache_limit end |
#expires_in ⇒ Object
session expire time, default 2 minutes
17 18 19 |
# File 'lib/rucaptcha/configuration.rb', line 17 def expires_in @expires_in end |
#font_size ⇒ Object
Image font size, default 45
6 7 8 |
# File 'lib/rucaptcha/configuration.rb', line 6 def font_size @font_size end |
#height ⇒ Object
TODO: remove height, width in 0.3.0
4 5 6 |
# File 'lib/rucaptcha/configuration.rb', line 4 def height @height end |
#implode ⇒ Object
implode, default 0.4
10 11 12 |
# File 'lib/rucaptcha/configuration.rb', line 10 def implode @implode end |
#len ⇒ Object
Number of chars, default 4
8 9 10 |
# File 'lib/rucaptcha/configuration.rb', line 8 def len @len end |
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white]
15 16 17 |
# File 'lib/rucaptcha/configuration.rb', line 15 def style @style end |
#width ⇒ Object
TODO: remove height, width in 0.3.0
4 5 6 |
# File 'lib/rucaptcha/configuration.rb', line 4 def width @width end |