Class: WebhookProcessors::AssemblyaiProcessor
- Inherits:
-
Object
- Object
- WebhookProcessors::AssemblyaiProcessor
- Defined in:
- app/services/webhook_processors/assemblyai_processor.rb
Overview
Processes AssemblyAI webhook callbacks.
Delegates to the appropriate completion worker based on resource type.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(webhook_log) ⇒ AssemblyaiProcessor
constructor
A new instance of AssemblyaiProcessor.
Constructor Details
#initialize(webhook_log) ⇒ AssemblyaiProcessor
Returns a new instance of AssemblyaiProcessor.
15 16 17 |
# File 'app/services/webhook_processors/assemblyai_processor.rb', line 15 def initialize(webhook_log) @webhook_log = webhook_log end |
Class Method Details
.call(webhook_log) ⇒ Object
11 12 13 |
# File 'app/services/webhook_processors/assemblyai_processor.rb', line 11 def self.call(webhook_log) new(webhook_log).call end |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'app/services/webhook_processors/assemblyai_processor.rb', line 19 def call case @webhook_log.category when 'transcription_complete' process_transcription_complete else raise NotImplementedError, "Unknown category: #{@webhook_log.category}" end end |