Class: Aws::TranscribeStreamingService::EventStreams::MedicalTranscriptResultStream
- Inherits:
-
Object
- Object
- Aws::TranscribeStreamingService::EventStreams::MedicalTranscriptResultStream
- 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 ⇒ MedicalTranscriptResultStream
constructor
A new instance of MedicalTranscriptResultStream.
- #on_bad_request_exception_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_transcript_event_event(&block) ⇒ Object
- #on_unknown_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ MedicalTranscriptResultStream
Returns a new instance of MedicalTranscriptResultStream.
186 187 188 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 186 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.
240 241 242 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 240 def event_emitter @event_emitter end |
Instance Method Details
#on_bad_request_exception_event(&block) ⇒ Object
194 195 196 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 194 def on_bad_request_exception_event(&block) @event_emitter.on(:bad_request_exception, block) if block_given? end |
#on_conflict_exception_event(&block) ⇒ Object
206 207 208 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 206 def on_conflict_exception_event(&block) @event_emitter.on(:conflict_exception, block) if block_given? end |
#on_error_event(&block) ⇒ Object
214 215 216 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 214 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
226 227 228 229 230 231 232 233 234 235 236 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 226 def on_event(&block) on_transcript_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
218 219 220 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 218 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
202 203 204 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 202 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
198 199 200 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 198 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
210 211 212 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 210 def on_service_unavailable_exception_event(&block) @event_emitter.on(:service_unavailable_exception, block) if block_given? end |
#on_transcript_event_event(&block) ⇒ Object
190 191 192 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 190 def on_transcript_event_event(&block) @event_emitter.on(:transcript_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
222 223 224 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 222 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |