Class: Aws::S3::EventStreams::SelectObjectContentEventStream
- Inherits:
-
Object
- Object
- Aws::S3::EventStreams::SelectObjectContentEventStream
- Defined in:
- gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb
Instance Method Summary collapse
-
#initialize ⇒ SelectObjectContentEventStream
constructor
A new instance of SelectObjectContentEventStream.
-
#on_cont_event(&block) ⇒ Object
-
#on_end_event(&block) ⇒ Object
-
#on_error_event(&block) ⇒ Object
-
#on_event(&block) ⇒ Object
-
#on_initial_response_event(&block) ⇒ Object
-
#on_progress_event(&block) ⇒ Object
-
#on_records_event(&block) ⇒ Object
-
#on_stats_event(&block) ⇒ Object
-
#on_unknown_event(&block) ⇒ Object
Constructor Details
#initialize ⇒ SelectObjectContentEventStream
Returns a new instance of SelectObjectContentEventStream.
14 15 16 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 14 def initialize @event_emitter = Aws::EventEmitter.new end |
Instance Method Details
#on_cont_event(&block) ⇒ Object
30 31 32 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 30 def on_cont_event(&block) @event_emitter.on(:cont, block) if block_given? end |
#on_end_event(&block) ⇒ Object
34 35 36 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 34 def on_end_event(&block) @event_emitter.on(:end, block) if block_given? end |
#on_error_event(&block) ⇒ Object
38 39 40 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 38 def on_error_event(&block) @event_emitter.on(:error, block) if block_given? end |
#on_event(&block) ⇒ Object
50 51 52 53 54 55 56 57 58 59 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 50 def on_event(&block) on_records_event(&block) on_stats_event(&block) on_progress_event(&block) on_cont_event(&block) on_end_event(&block) on_error_event(&block) on_initial_response_event(&block) on_unknown_event(&block) end |
#on_initial_response_event(&block) ⇒ Object
42 43 44 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 42 def on_initial_response_event(&block) @event_emitter.on(:initial_response, block) if block_given? end |
#on_progress_event(&block) ⇒ Object
26 27 28 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 26 def on_progress_event(&block) @event_emitter.on(:progress, block) if block_given? end |
#on_records_event(&block) ⇒ Object
18 19 20 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 18 def on_records_event(&block) @event_emitter.on(:records, block) if block_given? end |
#on_stats_event(&block) ⇒ Object
22 23 24 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 22 def on_stats_event(&block) @event_emitter.on(:stats, block) if block_given? end |
#on_unknown_event(&block) ⇒ Object
46 47 48 |
# File 'gems/aws-sdk-s3/lib/aws-sdk-s3/event_streams.rb', line 46 def on_unknown_event(&block) @event_emitter.on(:unknown_event, block) if block_given? end |