Class: RuCaptchaNumber::Configuration
- Inherits:
-
Object
- Object
- RuCaptchaNumber::Configuration
- Defined in:
- lib/rucaptcha_number/configuration.rb
Instance Attribute Summary collapse
-
#cache_store ⇒ Object
Store Captcha code where, this config more like Rails config.cache_store default: Rails application config.cache_store.
-
#expires_in ⇒ Object
rucaptcha expire time, default 2 minutes.
-
#length ⇒ Object
Chars length: default 5, allows: [3..7].
-
#outline ⇒ Object
outline style for hard mode, default: false.
-
#strikethrough ⇒ Object
strikethrough, default: true.
-
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white].
Instance Attribute Details
#cache_store ⇒ Object
Store Captcha code where, this config more like Rails config.cache_store default: Rails application config.cache_store
5 6 7 |
# File 'lib/rucaptcha_number/configuration.rb', line 5 def cache_store @cache_store end |
#expires_in ⇒ Object
rucaptcha expire time, default 2 minutes
7 8 9 |
# File 'lib/rucaptcha_number/configuration.rb', line 7 def expires_in @expires_in end |
#length ⇒ Object
Chars length: default 5, allows: [3..7]
11 12 13 |
# File 'lib/rucaptcha_number/configuration.rb', line 11 def length @length end |
#outline ⇒ Object
outline style for hard mode, default: false
15 16 17 |
# File 'lib/rucaptcha_number/configuration.rb', line 15 def outline @outline end |
#strikethrough ⇒ Object
strikethrough, default: true
13 14 15 |
# File 'lib/rucaptcha_number/configuration.rb', line 13 def strikethrough @strikethrough end |
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white]
9 10 11 |
# File 'lib/rucaptcha_number/configuration.rb', line 9 def style @style end |