You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::TranscribeStreamingService::EventStreams::TranscriptResultStream

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

Instance Method Summary collapse

Constructor Details

#initializeTranscriptResultStream

Returns a new instance of TranscriptResultStream



36
37
38
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 36

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

Instance Method Details

#on_bad_request_exception_event(&block) ⇒ Object



44
45
46
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 44

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

#on_conflict_exception_event(&block) ⇒ Object



56
57
58
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 56

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

#on_error_event(&block) ⇒ Object



60
61
62
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 60

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

#on_event(&block) ⇒ Object



68
69
70
71
72
73
74
75
76
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 68

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_error_event(&block)
  on_initial_response_event(&block)
end

#on_initial_response_event(&block) ⇒ Object



64
65
66
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 64

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

#on_internal_failure_exception_event(&block) ⇒ Object



52
53
54
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 52

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



48
49
50
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 48

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

#on_transcript_event_event(&block) ⇒ Object



40
41
42
# File 'gems/aws-sdk-transcribestreamingservice/lib/aws-sdk-transcribestreamingservice/event_streams.rb', line 40

def on_transcript_event_event(&block)
  @event_emitter.on(:transcript_event, block) if block_given?
end