Class: Aws::Rest::Response::Parser Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/rest/response/parser.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

#apply(response) ⇒ 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.


8
9
10
11
12
13
14
15
16
17
18
# File 'lib/aws-sdk-core/rest/response/parser.rb', line 8

def apply(response)
  # TODO : remove this unless check once response stubbing is fixed
  if rules = response.context.operation.output
    response.data = rules.shape.struct_class.new
    extract_status_code(rules, response)
    extract_headers(rules, response)
    extract_body(rules, response)
  else
    response.data = EmptyStructure.new
  end
end