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

Class: Aws::Stubbing::Protocols::Rest

Inherits:
Object
  • Object
show all
Includes:
Seahorse::Model::Shapes
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/stubbing/protocols/rest.rb

Direct Known Subclasses

RestJson, RestXml

Instance Method Summary collapse

Instance Method Details

#stub_data(api, operation, data) ⇒ Object



8
9
10
11
12
13
14
# File 'gems/aws-sdk-core/lib/aws-sdk-core/stubbing/protocols/rest.rb', line 8

def stub_data(api, operation, data)
  resp = new_http_response
  apply_status_code(operation, resp, data)
  apply_headers(operation, resp, data)
  apply_body(api, operation, resp, data)
  resp
end