Class: Aws::Api::Docs::ResponseStructureExample Private

Inherits:
Object
  • Object
show all
Includes:
Utils, Seahorse::Model::Shapes
Defined in:
lib/aws-sdk-core/api/docs/response_structure_example.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

Methods included from Utils

#compute_recursive_shapes, #document_struct_member, #input_type, #operation_input_ref, #output_type, #struct_member_docstring, #summary, #tag

Constructor Details

#initialize(method_name, operation) ⇒ ResponseStructureExample

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.

Returns a new instance of ResponseStructureExample.



9
10
11
12
13
# File 'lib/aws-sdk-core/api/docs/response_structure_example.rb', line 9

def initialize(method_name, operation)
  @method_name = method_name
  @operation = operation
  @recursive_shapes = compute_recursive_shapes(@operation.output)
end

Instance Method Details

#to_strObject

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.



15
16
17
18
19
20
21
22
# File 'lib/aws-sdk-core/api/docs/response_structure_example.rb', line 15

def to_str
  if @operation.output
    lines = entry(@operation.output, "resp", [])
    lines.empty? ? nil : lines.join("\n")
  else
    nil
  end
end