Class: Aws::TranscribeStreamingService::EventStreams::CallAnalyticsTranscriptResultStream
- Inherits:
-
Object
- Object
- Aws::TranscribeStreamingService::EventStreams::CallAnalyticsTranscriptResultStream
- Defined in:
- lib/aws-sdk-transcribestreamingservice/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
Instance Method Summary collapse
-
#initialize ⇒ CallAnalyticsTranscriptResultStream
constructor
A new instance of CallAnalyticsTranscriptResultStream.
- #on_bad_request_exception_event(&block) ⇒ Object
- #on_category_event_event(&block) ⇒ Object
- #on_conflict_exception_event(&block) ⇒ Object
- #on_error_event(&block) ⇒ Object
- #on_event(&block) ⇒ Object
- #on_initial_response_event(&block) ⇒ Object
- #on_internal_failure_exception_event(&block) ⇒ Object
- #on_limit_exceeded_exception_event(&block) ⇒ Object
- #on_service_unavailable_exception_event(&block) ⇒ Object
- #on_unknown_event(&block) ⇒ Object
- #on_utterance_event_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ CallAnalyticsTranscriptResultStream
Returns a new instance of CallAnalyticsTranscriptResultStream.
146 147 148 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 146 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Attribute Details
#event_emitter ⇒ Object (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.
205 206 207 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 205 def event_emitter @event_emitter end |
Instance Method Details
#on_bad_request_exception_event(&block) ⇒ Object
158 159 160 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 158 def on_bad_request_exception_event(&block) @event_emitter.on(:bad_request_exception, block) if block_given? end |
#on_category_event_event(&block) ⇒ Object
154 155 156 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 154 def on_category_event_event(&block) @event_emitter.on(:category_event, block) if block_given? end |
#on_conflict_exception_event(&block) ⇒ Object
170 171 172 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 170 def on_conflict_exception_event(&block) @event_emitter.on(:conflict_exception, block) if block_given? end |
#on_error_event(&block) ⇒ Object
178 179 180 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 178 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 190 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
182 183 184 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 182 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
166 167 168 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 166 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
162 163 164 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 162 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
174 175 176 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 174 def on_service_unavailable_exception_event(&block) @event_emitter.on(:service_unavailable_exception, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
186 187 188 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 186 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |
#on_utterance_event_event(&block) ⇒ Object
150 151 152 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 150 def on_utterance_event_event(&block) @event_emitter.on(:utterance_event, block) if block_given? end |