You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Module: Seahorse::Client::EventEmitter

Defined in:
aws-sdk-core/lib/seahorse/client/events.rb

Instance Method Summary collapse

Instance Method Details

#emit(event_name, *args, &block) ⇒ Object



10
11
12
13
# File 'aws-sdk-core/lib/seahorse/client/events.rb', line 10

def emit(event_name, *args, &block)
  @listeners[event_name] ||= []
  @listeners[event_name] << Proc.new
end

#initialize(*args) ⇒ Object



5
6
7
8
# File 'aws-sdk-core/lib/seahorse/client/events.rb', line 5

def initialize(*args)
  @listeners = {}
  super
end

#signal(event, *args) ⇒ Object



15
16
17
# File 'aws-sdk-core/lib/seahorse/client/events.rb', line 15

def signal(event, *args)
  @listeners
end