A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/sdkforruby/api/Aws/Plugins/StubResponses.html below:

StubResponses — AWS SDK for Ruby V2

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

Class: Aws::Plugins::StubResponses Defined Under Namespace

Classes: Handler

Attribute Summary collapse Instance Method Summary collapse Methods inherited from Seahorse::Client::Plugin

#add_options, after_initialize, #before_initialize, before_initialize, option

Methods included from Seahorse::Client::HandlerBuilder

#handle, #handle_request, #handle_response

Instance Method Details #add_handlers(handlers, config) ⇒ Object
27
28
29
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/stub_responses.rb', line 27

def add_handlers(handlers, config)
  handlers.add(Handler, step: :send) if config.stub_responses
end
#after_initialize(client) ⇒ Object
31
32
33
34
35
36
# File 'aws-sdk-core/lib/aws-sdk-core/plugins/stub_responses.rb', line 31

def after_initialize(client)
  if client.config.stub_responses
    client.setup_stubbing
    client.handlers.remove(RetryErrors::Handler)
  end
end

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4