Class: RaCaptcha::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/racaptcha/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#cache_storeObject

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_inObject

rucaptcha expire time, default 2 minutes



7
8
9
# File 'lib/racaptcha/configuration.rb', line 7

def expires_in
  @expires_in
end

#lengthObject

Chars length: default 5, allows: [3..7]



11
12
13
# File 'lib/racaptcha/configuration.rb', line 11

def length
  @length
end

#outlineObject

outline style for hard mode, default: false



15
16
17
# File 'lib/racaptcha/configuration.rb', line 15

def outline
  @outline
end

#skip_cache_store_checkObject

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

#strikethroughObject

strikethrough, default: true



13
14
15
# File 'lib/racaptcha/configuration.rb', line 13

def strikethrough
  @strikethrough
end

#styleObject

Color style, default: :colorful, allows: [:colorful, :black_white]



9
10
11
# File 'lib/racaptcha/configuration.rb', line 9

def style
  @style
end