Class: OperatingNormallySpecification
- Inherits:
-
Object
- Object
- OperatingNormallySpecification
- Defined in:
- lib/src/OperatingNormallySpecification.rb
Constant Summary collapse
- RESOLVED_EVENT_EXPRESSION =
/RESOLVED/
Class Method Summary collapse
Class Method Details
.is_satisified_by?(service_events) ⇒ Boolean
4 5 6 |
# File 'lib/src/OperatingNormallySpecification.rb', line 4 def self.is_satisified_by?(service_events) service_events.empty? || service_events.first[:title] =~ RESOLVED_EVENT_EXPRESSION end |