Class: RuCaptchaNumber::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rucaptcha_number/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/rucaptcha_number/configuration.rb', line 5

def cache_store
  @cache_store
end

#expires_inObject

rucaptcha expire time, default 2 minutes



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

def expires_in
  @expires_in
end

#lengthObject

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



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

def length
  @length
end

#outlineObject

outline style for hard mode, default: false



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

def outline
  @outline
end

#strikethroughObject

strikethrough, default: true



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

def strikethrough
  @strikethrough
end

#styleObject

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



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

def style
  @style
end