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.
-
#implode ⇒ Object
implode, default 0.3.
-
#len ⇒ Object
Number of chars, default 4.
-
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white].
Instance Attribute Details
#cache_limit ⇒ Object
Number of Captcha codes limit set 0 to disable limit and file cache, default: 100
11 12 13 |
# File 'lib/rucaptcha/configuration.rb', line 11 def cache_limit @cache_limit end |
#expires_in ⇒ Object
session expire time, default 2 minutes
15 16 17 |
# File 'lib/rucaptcha/configuration.rb', line 15 def expires_in @expires_in end |
#font_size ⇒ Object
Image font size, default 45
4 5 6 |
# File 'lib/rucaptcha/configuration.rb', line 4 def font_size @font_size end |
#implode ⇒ Object
implode, default 0.3
8 9 10 |
# File 'lib/rucaptcha/configuration.rb', line 8 def implode @implode end |
#len ⇒ Object
Number of chars, default 4
6 7 8 |
# File 'lib/rucaptcha/configuration.rb', line 6 def len @len end |
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white]
13 14 15 |
# File 'lib/rucaptcha/configuration.rb', line 13 def style @style end |