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.
210 211 212 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 210 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.
264 265 266 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 264 def event_emitter @event_emitter end |
Instance Method Details
#on_bad_request_exception_event(&block) ⇒ Object
218 219 220 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 218 def on_bad_request_exception_event(&block) @event_emitter.on(:bad_request_exception, block) if block_given? end |
#on_conflict_exception_event(&block) ⇒ Object
230 231 232 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 230 def on_conflict_exception_event(&block) @event_emitter.on(:conflict_exception, block) if block_given? end |
#on_error_event(&block) ⇒ Object
238 239 240 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 238 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 250 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
242 243 244 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 242 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
226 227 228 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 226 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
222 223 224 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 222 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
234 235 236 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 234 def on_service_unavailable_exception_event(&block) @event_emitter.on(:service_unavailable_exception, block) if block_given? end |
#on_transcript_event_event(&block) ⇒ Object
214 215 216 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 214 def on_transcript_event_event(&block) @event_emitter.on(:transcript_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
246 247 248 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 246 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |