Exception: FastSubmissionProtection::SubmissionTooFastError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- FastSubmissionProtection::SubmissionTooFastError
- Defined in:
- lib/fast_submission_protection/controller.rb
Instance Attribute Summary collapse
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, delay) ⇒ SubmissionTooFastError
constructor
A new instance of SubmissionTooFastError.
Constructor Details
#initialize(name, delay) ⇒ SubmissionTooFastError
Returns a new instance of SubmissionTooFastError.
94 95 96 |
# File 'lib/fast_submission_protection/controller.rb', line 94 def initialize name, delay @name, @delay = name, delay end |
Instance Attribute Details
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
98 99 100 |
# File 'lib/fast_submission_protection/controller.rb', line 98 def delay @delay end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
98 99 100 |
# File 'lib/fast_submission_protection/controller.rb', line 98 def name @name end |