Class: Aws::Api::OperationExample Private

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

register, shape_class, types

Constructor Details

#initialize(options) ⇒ OperationExample

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 OperationExample.



7
8
9
10
11
12
13
14
15
16
# File 'lib/aws-sdk-core/api/operation_example.rb', line 7

def initialize(options)
  @obj_name = options[:svc_var_name]
  @method_name = options[:method_name]
  @operation = options[:operation]
  @streaming_output = !!(
    @operation.output &&
    @operation.output.payload_member &&
    @operation.output.payload_member.definition['streaming']
  )
end

Instance Method Details

#to_strObject Also known as: to_s, inspect

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.



18
19
20
# File 'lib/aws-sdk-core/api/operation_example.rb', line 18

def to_str
  "resp = #{@obj_name}.#{@method_name}(#{params[1...-1]})"
end