Class: Aws::Rest::Request::QuerystringBuilder Private

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

Instance Method Details

#build(params) ⇒ String

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.

Provide shape references and param values:

[
  [shape_ref1, 123],
  [shape_ref2, "text"]
]

Returns a querystring:

"Count=123&Words=text"


23
24
25
26
27
# File 'lib/aws-sdk-core/rest/request/querystring_builder.rb', line 23

def build(params)
  params.map do |(shape_ref, param_value)|
    build_part(shape_ref, param_value)
  end.join('&')
end