Class: Assistant::TechnicalSupport::CaseReplayEpisodeValidator

Inherits:
Object
  • Object
show all
Defined in:
app/services/assistant/technical_support/case_replay_episode_validator.rb

Overview

Applies the deterministic evidence validators after model episode selection.

Constant Summary collapse

VALIDATORS =
[
  Assistant::TechnicalSupport::CaseReplayEpisodeReferenceValidator,
  Assistant::TechnicalSupport::CaseReplayEpisodeOutcomeValidator,
  Assistant::TechnicalSupport::CaseReplayEpisodeChronologyValidator
].freeze

Class Method Summary collapse

Class Method Details

.call(episode:, events:) ⇒ Object



12
13
14
15
16
# File 'app/services/assistant/technical_support/case_replay_episode_validator.rb', line 12

def call(episode:, events:)
  VALIDATORS.lazy.filter_map do |validator|
    validator.call(episode:, events:)
  end.first
end