Class: FormGuard::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



21
22
23
24
25
# File 'lib/form_guard.rb', line 21

def initialize
  @min_delay = 2
  @honeypot_field_prefix = "field_"
  @honeypot_time_prefix = "ts_"
end

Instance Attribute Details

#honeypot_field_prefixObject

Returns the value of attribute honeypot_field_prefix.



19
20
21
# File 'lib/form_guard.rb', line 19

def honeypot_field_prefix
  @honeypot_field_prefix
end

#honeypot_time_prefixObject

Returns the value of attribute honeypot_time_prefix.



19
20
21
# File 'lib/form_guard.rb', line 19

def honeypot_time_prefix
  @honeypot_time_prefix
end

#min_delayObject

Returns the value of attribute min_delay.



19
20
21
# File 'lib/form_guard.rb', line 19

def min_delay
  @min_delay
end