Class: Aws::ConnectHealth::EventStreams::MedicalScribeOutputStream
- Inherits:
-
Object
- Object
- Aws::ConnectHealth::EventStreams::MedicalScribeOutputStream
- Defined in:
- gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb
Instance Method Summary collapse
-
#initialize ⇒ MedicalScribeOutputStream
constructor
A new instance of MedicalScribeOutputStream.
-
#on_error_event(&block) ⇒ Object
-
#on_event(&block) ⇒ Object
-
#on_initial_response_event(&block) ⇒ Object
-
#on_internal_failure_exception_event(&block) ⇒ Object
-
#on_transcript_event_event(&block) ⇒ Object
-
#on_unknown_event(&block) ⇒ Object
-
#on_validation_exception_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ MedicalScribeOutputStream
Returns a new instance of MedicalScribeOutputStream.
64 65 66 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 64 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Method Details
#on_error_event(&block) ⇒ Object
80 81 82 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 80 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
92 93 94 95 96 97 98 99 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 92 def on_event(&block) on_transcript_event_event(&block) on_internal_failure_exception_event(&block) on_validation_exception_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_initial_response_event(&block) ⇒ Object
84 85 86 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 84 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
72 73 74 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 72 def on_internal_failure_exception_event(&block) @event_emitter.on(:internal_failure_exception, block) if block_given? end |
#on_transcript_event_event(&block) ⇒ Object
68 69 70 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 68 def on_transcript_event_event(&block) @event_emitter.on(:transcript_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
88 89 90 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 88 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |
#on_validation_exception_event(&block) ⇒ Object
76 77 78 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 76 def on_validation_exception_event(&block) @event_emitter.on(:validation_exception, block) if block_given? end |