Class: Aws::TypeBuilder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/type_builder.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

Constructor Details

#initialize(svc_module) ⇒ TypeBuilder

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 TypeBuilder



5
6
7
# File 'lib/aws-sdk-core/type_builder.rb', line 5

def initialize(svc_module)
  @types_module = svc_module.const_set(:Types, Module.new)
end

Instance Method Details

#build_type(shape, shapes) ⇒ 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.



9
10
11
# File 'lib/aws-sdk-core/type_builder.rb', line 9

def build_type(shape, shapes)
  @types_module.const_set(shape.name, Structure.new(*shape.member_names))
end