Class: RuCaptcha::Configuration

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

Instance Attribute Summary collapse

Instance Attribute Details

#cache_limitObject

Number of Captcha codes limit set 0 to disable limit and file cache, default: 100



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

def cache_limit
  @cache_limit
end

#expires_inObject

session expire time, default 2 minutes



17
18
19
# File 'lib/rucaptcha/configuration.rb', line 17

def expires_in
  @expires_in
end

#font_sizeObject

Image font size, default 45



6
7
8
# File 'lib/rucaptcha/configuration.rb', line 6

def font_size
  @font_size
end

#heightObject

TODO: remove height, width in 0.3.0



4
5
6
# File 'lib/rucaptcha/configuration.rb', line 4

def height
  @height
end

#implodeObject

implode, default 0.4



10
11
12
# File 'lib/rucaptcha/configuration.rb', line 10

def implode
  @implode
end

#lenObject

Number of chars, default 4



8
9
10
# File 'lib/rucaptcha/configuration.rb', line 8

def len
  @len
end

#styleObject

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



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

def style
  @style
end

#widthObject

TODO: remove height, width in 0.3.0



4
5
6
# File 'lib/rucaptcha/configuration.rb', line 4

def width
  @width
end