Class: FastSubmissionProtection::FinishFilter
- Inherits:
-
Struct
- Object
- Struct
- FastSubmissionProtection::FinishFilter
- Defined in:
- lib/fast_submission_protection/controller.rb
Instance Attribute Summary collapse
-
#delay ⇒ Object
Returns the value of attribute delay.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#delay ⇒ Object
Returns the value of attribute delay
76 77 78 |
# File 'lib/fast_submission_protection/controller.rb', line 76 def delay @delay end |
#name ⇒ Object
Returns the value of attribute name
76 77 78 |
# File 'lib/fast_submission_protection/controller.rb', line 76 def name @name end |
Instance Method Details
#filter(controller) ⇒ Object
77 78 79 80 81 |
# File 'lib/fast_submission_protection/controller.rb', line 77 def filter controller if controller.protect_from_fast_submission? controller.submission_timer(name, delay).finish end end |