Class: Aws::Xml::Builder Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aws-sdk-core/xml/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(shape) ⇒ 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.



9
10
11
12
13
# File 'lib/aws-sdk-core/xml/builder.rb', line 9

def initialize(shape)
  @shape = shape
  @xml = []
  @builder = ::Builder::XmlMarkup.new(target: @xml, indent: 2)
end

Instance Method Details

#to_xml(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.

Returns an XML doc string.

Parameters:

  • params (Hash)

Returns:

  • (String)

    Returns an XML doc string.



17
18
19
20
# File 'lib/aws-sdk-core/xml/builder.rb', line 17

def to_xml(params)
  structure(@shape.location_name, @shape, params)
  @xml.join
end