Class: Aws::RpcV2::Builder Private
- Inherits:
-
Object
- Object
- Aws::RpcV2::Builder
- Includes:
- Seahorse::Model::Shapes
- Defined in:
- lib/aws-sdk-core/rpc_v2/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
-
#initialize(rules, _options = {}) ⇒ Builder
constructor
private
A new instance of Builder.
- #serialize(params) ⇒ Object private
Constructor Details
#initialize(rules, _options = {}) ⇒ Builder
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 Builder.
10 11 12 |
# File 'lib/aws-sdk-core/rpc_v2/builder.rb', line 10 def initialize(rules, = {}) @rules = rules end |
Instance Method Details
#serialize(params) ⇒ 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 18 19 20 |
# File 'lib/aws-sdk-core/rpc_v2/builder.rb', line 14 def serialize(params) # If the input shape is empty, do not set a body. This is # different than if the input shape is a structure with no members. return nil if @rules.shape.struct_class == EmptyStructure RpcV2.encode(format(@rules, params)) end |