Class: RaCaptcha::Configuration
- Inherits:
-
Object
- Object
- RaCaptcha::Configuration
- Defined in:
- lib/racaptcha/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.
-
#skip_cache_store_check ⇒ Object
skip_cache_store_check, 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/racaptcha/configuration.rb', line 5 def cache_store @cache_store end |
#expires_in ⇒ Object
rucaptcha expire time, default 2 minutes
7 8 9 |
# File 'lib/racaptcha/configuration.rb', line 7 def expires_in @expires_in end |
#length ⇒ Object
Chars length: default 5, allows: [3..7]
11 12 13 |
# File 'lib/racaptcha/configuration.rb', line 11 def length @length end |
#outline ⇒ Object
outline style for hard mode, default: false
15 16 17 |
# File 'lib/racaptcha/configuration.rb', line 15 def outline @outline end |
#skip_cache_store_check ⇒ Object
skip_cache_store_check, default: false
17 18 19 |
# File 'lib/racaptcha/configuration.rb', line 17 def skip_cache_store_check @skip_cache_store_check end |
#strikethrough ⇒ Object
strikethrough, default: true
13 14 15 |
# File 'lib/racaptcha/configuration.rb', line 13 def strikethrough @strikethrough end |
#style ⇒ Object
Color style, default: :colorful, allows: [:colorful, :black_white]
9 10 11 |
# File 'lib/racaptcha/configuration.rb', line 9 def style @style end |