Class: FormGuard::Configuration
- Inherits:
-
Object
- Object
- FormGuard::Configuration
- Defined in:
- lib/form_guard.rb
Instance Attribute Summary collapse
-
#honeypot_field_prefix ⇒ Object
Returns the value of attribute honeypot_field_prefix.
-
#honeypot_time_prefix ⇒ Object
Returns the value of attribute honeypot_time_prefix.
-
#min_delay ⇒ Object
Returns the value of attribute min_delay.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_prefix ⇒ Object
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_prefix ⇒ Object
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_delay ⇒ Object
Returns the value of attribute min_delay.
19 20 21 |
# File 'lib/form_guard.rb', line 19 def min_delay @min_delay end |