Class: FastSubmissionProtection::FinishFilter

Inherits:
Struct
  • Object
show all
Defined in:
lib/fast_submission_protection/controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#delayObject

Returns the value of attribute delay

Returns:

  • (Object)

    the current value of delay



87
88
89
# File 'lib/fast_submission_protection/controller.rb', line 87

def delay
  @delay
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



87
88
89
# File 'lib/fast_submission_protection/controller.rb', line 87

def name
  @name
end

Instance Method Details

#filter(controller) ⇒ Object



88
89
90
# File 'lib/fast_submission_protection/controller.rb', line 88

def filter controller
  controller.finish_timed_submission name, delay
end