Class: Aws::TranscribeStreamingService::EventStreams::TranscriptResultStream
- Inherits:
-
Object
- Object
- Aws::TranscribeStreamingService::EventStreams::TranscriptResultStream
- 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 ⇒ TranscriptResultStream
constructor
A new instance of TranscriptResultStream.
- #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 ⇒ TranscriptResultStream
Returns a new instance of TranscriptResultStream.
494 495 496 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 494 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.
548 549 550 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 548 def event_emitter @event_emitter end |
Instance Method Details
#on_bad_request_exception_event(&block) ⇒ Object
502 503 504 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 502 def on_bad_request_exception_event(&block) @event_emitter.on(:bad_request_exception, block) if block_given? end |
#on_conflict_exception_event(&block) ⇒ Object
514 515 516 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 514 def on_conflict_exception_event(&block) @event_emitter.on(:conflict_exception, block) if block_given? end |
#on_error_event(&block) ⇒ Object
522 523 524 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 522 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
534 535 536 537 538 539 540 541 542 543 544 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 534 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
526 527 528 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 526 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
510 511 512 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 510 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
506 507 508 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 506 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
518 519 520 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 518 def on_service_unavailable_exception_event(&block) @event_emitter.on(:service_unavailable_exception, block) if block_given? end |
#on_transcript_event_event(&block) ⇒ Object
498 499 500 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 498 def on_transcript_event_event(&block) @event_emitter.on(:transcript_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
530 531 532 |
# File 'lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 530 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |