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.
57 58 59 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 57 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Method Details
#on_error_event(&block) ⇒ Object
73 74 75 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 73 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
85 86 87 88 89 90 91 92 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 85 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
77 78 79 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 77 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_internal_failure_exception_event(&block) ⇒ Object
65 66 67 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 65 def on_internal_failure_exception_event(&block) @event_emitter.on(:internal_failure_exception, block) if block_given? end |
#on_transcript_event_event(&block) ⇒ Object
61 62 63 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 61 def on_transcript_event_event(&block) @event_emitter.on(:transcript_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
81 82 83 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 81 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |
#on_validation_exception_event(&block) ⇒ Object
69 70 71 |
# File 'gems/aws-sdk-connecthealth/lib/aws-sdk-connecthealth/event_streams.rb', line 69 def on_validation_exception_event(&block) @event_emitter.on(:validation_exception, block) if block_given? end |