Class: Aws::Stubbing::Protocols::Query Private
- Inherits:
-
Object
- Object
- Aws::Stubbing::Protocols::Query
- Defined in:
- lib/aws-sdk-core/stubbing/protocols/query.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
Instance Method Details
#stub_data(api, operation, data) ⇒ 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.
9 10 11 12 13 14 |
# File 'lib/aws-sdk-core/stubbing/protocols/query.rb', line 9 def stub_data(api, operation, data) resp = Seahorse::Client::Http::Response.new resp.status_code = 200 resp.body = build_body(api, operation, data) resp end |
#stub_error(error_code) ⇒ 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.
16 17 18 19 20 21 |
# File 'lib/aws-sdk-core/stubbing/protocols/query.rb', line 16 def stub_error(error_code) resp = Seahorse::Client::Http::Response.new resp.status_code = 400 resp.body = XmlError.new(error_code).to_xml resp end |