Class: Aws::Xml::Builder Private
- Inherits:
-
Object
- Object
- Aws::Xml::Builder
- 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
-
#initialize(shape) ⇒ Builder
constructor
private
A new instance of Builder.
-
#to_xml(params) ⇒ String
private
Returns an XML doc string.
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.
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 |