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.



6
7
8
9
10
11
12
13
14
# File 'lib/aws-sdk-core/rest/response/parser.rb', line 6

def apply(response)
  # TODO : remove this unless check once response stubbing is fixed
  unless response.data
    response.data = response.context.operation.output[:struct_class].new
  end
  extract_status_code(response)
  extract_headers(response)
  extract_body(response)
end