Class: Aws::Xml::Builder Private
- Inherits:
-
Object
- Object
- Aws::Xml::Builder
- Includes:
- Seahorse::Model::Shapes
- 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(rules, options = {}) ⇒ Builder
constructor
private
A new instance of Builder.
- #to_xml(params) ⇒ Object (also: #serialize) 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.
11 12 13 14 15 16 17 18 19 |
# File 'lib/aws-sdk-core/xml/builder.rb', line 11 def initialize(rules, = {}) @rules = rules @location_name = [:location_name].nil? ? @rules.location_name : [:location_name] @xml = [:target] || [] indent = [:indent] || '' pad = [:pad] || '' @builder = DocBuilder.new(target: @xml, indent: indent, pad: pad) end |
Instance Method Details
#to_xml(params) ⇒ Object Also known as: serialize
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.
21 22 23 24 |
# File 'lib/aws-sdk-core/xml/builder.rb', line 21 def to_xml(params) structure(@location_name, @rules, params) @xml.join end |