Class: Aws::QBusiness::EventStreams::ChatOutputStream
- Inherits:
-
Object
- Object
- Aws::QBusiness::EventStreams::ChatOutputStream
- Defined in:
- lib/aws-sdk-qbusiness/event_streams.rb
Instance Attribute Summary collapse
-
#event_emitter ⇒ Object
readonly
private
Aws::EventEmitter.
Instance Method Summary collapse
-
#initialize ⇒ ChatOutputStream
constructor
A new instance of ChatOutputStream.
- #on_action_review_event_event(&block) ⇒ Object
- #on_auth_challenge_request_event_event(&block) ⇒ Object
- #on_error_event(&block) ⇒ Object
- #on_event(&block) ⇒ Object
- #on_failed_attachment_event_event(&block) ⇒ Object
- #on_initial_response_event(&block) ⇒ Object
- #on_metadata_event_event(&block) ⇒ Object
- #on_text_event_event(&block) ⇒ Object
- #on_unknown_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ ChatOutputStream
Returns a new instance of ChatOutputStream.
117 118 119 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 117 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.
166 167 168 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 166 def event_emitter @event_emitter end |
Instance Method Details
#on_action_review_event_event(&block) ⇒ Object
129 130 131 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 129 def on_action_review_event_event(&block) @event_emitter.on(:action_review_event, block) if block_given? end |
#on_auth_challenge_request_event_event(&block) ⇒ Object
137 138 139 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 137 def on_auth_challenge_request_event_event(&block) @event_emitter.on(:auth_challenge_request_event, block) if block_given? end |
#on_error_event(&block) ⇒ Object
141 142 143 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 141 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
153 154 155 156 157 158 159 160 161 162 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 153 def on_event(&block) on_text_event_event(&block) (&block) on_action_review_event_event(&block) (&block) on_auth_challenge_request_event_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_failed_attachment_event_event(&block) ⇒ Object
133 134 135 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 133 def (&block) @event_emitter.on(:failed_attachment_event, block) if block_given? end |
#on_initial_response_event(&block) ⇒ Object
145 146 147 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 145 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_metadata_event_event(&block) ⇒ Object
125 126 127 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 125 def (&block) @event_emitter.on(:metadata_event, block) if block_given? end |
#on_text_event_event(&block) ⇒ Object
121 122 123 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 121 def on_text_event_event(&block) @event_emitter.on(:text_event, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
149 150 151 |
# File 'lib/aws-sdk-qbusiness/event_streams.rb', line 149 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |