Method: Seahorse::Client::Plugins::ResponseTarget::Handler#call

Defined in:
lib/seahorse/client/plugins/response_target.rb

#call(context) ⇒ Object

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.



14
15
16
17
18
19
20
21
22
# File 'lib/seahorse/client/plugins/response_target.rb', line 14

def call(context)
  if context.params.is_a?(Hash) && context.params[:response_target]
    target = context.params.delete(:response_target)
  else
    target = context[:response_target]
  end
  add_event_listeners(context, target) if target
  @handler.call(context)
end