class Aws::Api::Docs::RequestSyntaxExample

Public Class Methods

new(method_name, operation) click to toggle source
# 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

Public Instance Methods

to_str() click to toggle source
# 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