Class: Aws::ConnectHealth::EventStreams::MedicalScribeOutputStream
- Inherits:
-
Object
- Object
- Aws::ConnectHealth::EventStreams::MedicalScribeOutputStream
- Defined in:
- lib/aws-sdk-connecthealth/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
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 'lib/aws-sdk-connecthealth/event_streams.rb', line 64 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.
103 104 105 |
# File 'lib/aws-sdk-connecthealth/event_streams.rb', line 103 def event_emitter @event_emitter end |
Instance Method Details
#on_error_event(&block) ⇒ Object
80 81 82 |
# File '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 '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 '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 '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 '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 '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 '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 |