Sha256: 78264c054849b14b9f7dc814b98d0e08c49a84a14a9ae3643566d8e3b8d58cd9

Contents?: true

Size: 1.35 KB

Versions: 11

Compression:

Stored size: 1.35 KB

Contents

# WARNING ABOUT GENERATED CODE
#
# This file is generated. See the contributing guide for more information:
# https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
#
# WARNING ABOUT GENERATED CODE

module Aws::S3
  module EventStreams
    class SelectObjectContentEventStream

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

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

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

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

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

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

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

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

      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)
      end

      # @api private
      # @return Aws::EventEmitter
      attr_reader :event_emitter

    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
aws-sdk-s3-1.41.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.40.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.39.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.38.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.37.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.36.1 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.36.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.35.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.34.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.33.0 lib/aws-sdk-s3/event_streams.rb
aws-sdk-s3-1.32.0 lib/aws-sdk-s3/event_streams.rb