module Aws::ClientStubs
def api_requests(options = {})
-
(NotImplementedError)
- Raises `NotImplementedError` when the client is not stubbed
Returns:
-
(Array)
- Returns an array of the api requests made, each request object contains the
def api_requests(options = {}) if config.stub_responses if options[:exclude_presign] @api_requests.reject {|req| req[:context][:presigned_url] } else @api_requests end else msg = 'This method is only implemented for stubbed clients, and is ' msg << 'available when you enable stubbing in the constructor with `stub_responses: true`' raise NotImplementedError.new(msg) end end