Class: Aws::TypeBuilder Private
- Inherits:
-
Object
- Object
- Aws::TypeBuilder
- 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
- #build_type(shape, shapes) ⇒ Object private
-
#initialize(svc_module) ⇒ TypeBuilder
constructor
private
A new instance of TypeBuilder.
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.
7 8 9 |
# File 'lib/aws-sdk-core/type_builder.rb', line 7 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.
11 12 13 |
# File 'lib/aws-sdk-core/type_builder.rb', line 11 def build_type(shape, shapes) @types_module.const_set(shape.name, Structure.new(*shape.member_names)) end |