Class: Aws::TranscribeStreamingService::EventStreams::CallAnalyticsTranscriptResultStream

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-transcribestreamingservice/event_streams.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCallAnalyticsTranscriptResultStream

Returns a new instance of CallAnalyticsTranscriptResultStream.



122
123
124
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 122

def initialize
  @event_emitter = Aws::EventEmitter.new
end

Instance Attribute Details

#event_emitterObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns Aws::EventEmitter.

Returns:

  • Aws::EventEmitter



181
182
183
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 181

def event_emitter
  @event_emitter
end

Instance Method Details

#on_bad_request_exception_event(&block) ⇒ Object



134
135
136
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 134

def on_bad_request_exception_event(&block)
  @event_emitter.on(:bad_request_exception, block) if block_given?
end

#on_category_event_event(&block) ⇒ Object



130
131
132
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 130

def on_category_event_event(&block)
  @event_emitter.on(:category_event, block) if block_given?
end

#on_conflict_exception_event(&block) ⇒ Object



146
147
148
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 146

def on_conflict_exception_event(&block)
  @event_emitter.on(:conflict_exception, block) if block_given?
end

#on_error_event(&block) ⇒ Object



154
155
156
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 154

def on_error_event(&block)
  @event_emitter.on(:error, block) if block_given?
end

#on_event(&block) ⇒ Object



166
167
168
169
170
171
172
173
174
175
176
177
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 166

def on_event(&block)
  on_utterance_event_event(&block)
  on_category_event_event(&block)
  on_bad_request_exception_event(&block)
  on_limit_exceeded_exception_event(&block)
  on_internal_failure_exception_event(&block)
  on_conflict_exception_event(&block)
  on_service_unavailable_exception_event(&block)
  on_error_event(&block)
  on_initial_response_event(&block)
  on_unknown_event(&block)
end

#on_initial_response_event(&block) ⇒ Object



158
159
160
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 158

def on_initial_response_event(&block)
  @event_emitter.on(:initial_response, block) if block_given?
end

#on_internal_failure_exception_event(&block) ⇒ Object



142
143
144
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 142

def on_internal_failure_exception_event(&block)
  @event_emitter.on(:internal_failure_exception, block) if block_given?
end

#on_limit_exceeded_exception_event(&block) ⇒ Object



138
139
140
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 138

def on_limit_exceeded_exception_event(&block)
  @event_emitter.on(:limit_exceeded_exception, block) if block_given?
end

#on_service_unavailable_exception_event(&block) ⇒ Object



150
151
152
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 150

def on_service_unavailable_exception_event(&block)
  @event_emitter.on(:service_unavailable_exception, block) if block_given?
end

#on_unknown_event(&block) ⇒ Object



162
163
164
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 162

def on_unknown_event(&block)
  @event_emitter.on(:unknown_event, block) if block_given?
end

#on_utterance_event_event(&block) ⇒ Object



126
127
128
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 126

def on_utterance_event_event(&block)
  @event_emitter.on(:utterance_event, block) if block_given?
end