Class: Aws::Api::Docs::RequestSyntaxExample Private
- Inherits:
-
Object
- Object
- Aws::Api::Docs::RequestSyntaxExample
- Includes:
- Utils, Seahorse::Model::Shapes
- Defined in:
- lib/aws-sdk-core/api/docs/request_syntax_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
-
#initialize(method_name, operation) ⇒ RequestSyntaxExample
constructor
private
A new instance of RequestSyntaxExample.
- #to_str ⇒ Object private
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) ⇒ RequestSyntaxExample
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 RequestSyntaxExample.
9 10 11 12 |
# File 'lib/aws-sdk-core/api/docs/request_syntax_example.rb', line 9 def initialize(method_name, operation) @method_name = method_name @operation = operation end |
Instance Method Details
#to_str ⇒ 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.
14 15 16 17 |
# File 'lib/aws-sdk-core/api/docs/request_syntax_example.rb', line 14 def to_str params = ParamFormatter.new(operation_input_ref(@operation)) "resp = client.#{@method_name}(#{params.format})" end |