Class: Eye::Trigger::Flapping
- Inherits:
-
Eye::Trigger
- Object
- Eye::Trigger
- Eye::Trigger::Flapping
- Defined in:
- lib/eye/trigger/flapping.rb
Constant Summary
Constants inherited from Eye::Trigger
Instance Attribute Summary
Attributes inherited from Eye::Trigger
Instance Method Summary collapse
- #check(transition) ⇒ Object
-
#initialize(*args) ⇒ Flapping
constructor
A new instance of Flapping.
Methods inherited from Eye::Trigger
create, #defer, #exec_proc, #filter_transition, get_class, #inspect, #logger_sub_tag, #logger_tag, name_and_class, #notify, register, requires, #run_in_process_context, validate!
Methods included from Dsl::Validation
Constructor Details
#initialize(*args) ⇒ Flapping
Returns a new instance of Flapping.
13 14 15 16 |
# File 'lib/eye/trigger/flapping.rb', line 13 def initialize(*args) super clear_counters end |
Instance Method Details
#check(transition) ⇒ Object
18 19 20 |
# File 'lib/eye/trigger/flapping.rb', line 18 def check(transition) on_flapping if transition.event == :crashed && !good? end |