Class: Aws::S3::EventStreams::SelectObjectContentEventStream

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-s3/event_streams.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSelectObjectContentEventStream

Returns a new instance of SelectObjectContentEventStream.



12
13
14
# File 'lib/aws-sdk-s3/event_streams.rb', line 12

def initialize
  @event_emitter = Aws::EventEmitter.new
end

Instance Attribute Details

#event_emitterObject (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.

Returns:

  • Aws::EventEmitter



50
51
52
# File 'lib/aws-sdk-s3/event_streams.rb', line 50

def event_emitter
  @event_emitter
end

Instance Method Details

#on_cont_event(&block) ⇒ Object



28
29
30
# File 'lib/aws-sdk-s3/event_streams.rb', line 28

def on_cont_event(&block)
  @event_emitter.on(:cont, Proc.new)
end

#on_end_event(&block) ⇒ Object



32
33
34
# File 'lib/aws-sdk-s3/event_streams.rb', line 32

def on_end_event(&block)
  @event_emitter.on(:end, Proc.new)
end

#on_error_event(&block) ⇒ Object



36
37
38
# File 'lib/aws-sdk-s3/event_streams.rb', line 36

def on_error_event(&block)
  @event_emitter.on(:error, Proc.new)
end

#on_event(&block) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/aws-sdk-s3/event_streams.rb', line 40

def on_event(&block)
  on_records_event(&block)
  on_stats_event(&block)
  on_progress_event(&block)
  on_cont_event(&block)
  on_end_event(&block)
end

#on_progress_event(&block) ⇒ Object



24
25
26
# File 'lib/aws-sdk-s3/event_streams.rb', line 24

def on_progress_event(&block)
  @event_emitter.on(:progress, Proc.new)
end

#on_records_event(&block) ⇒ Object



16
17
18
# File 'lib/aws-sdk-s3/event_streams.rb', line 16

def on_records_event(&block)
  @event_emitter.on(:records, Proc.new)
end

#on_stats_event(&block) ⇒ Object



20
21
22
# File 'lib/aws-sdk-s3/event_streams.rb', line 20

def on_stats_event(&block)
  @event_emitter.on(:stats, Proc.new)
end