Class: Aws::Xml::Parser::MapFrame Private
- Defined in:
- lib/aws-sdk-core/xml/parser/frame.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 Attribute Summary
Attributes inherited from Frame
Instance Method Summary collapse
- #child_frame(xml_name) ⇒ Object private
- #consume_child_frame(child) ⇒ Object private
-
#initialize(*args) ⇒ MapFrame
constructor
private
A new instance of MapFrame.
Methods inherited from Frame
Constructor Details
#initialize(*args) ⇒ MapFrame
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 MapFrame.
170 171 172 173 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 170 def initialize(*args) super @result = {} end |
Instance Method Details
#child_frame(xml_name) ⇒ 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.
175 176 177 178 179 180 181 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 175 def child_frame(xml_name) if xml_name == 'entry' MapEntryFrame.new(self, @ref) else raise NotImplementedError end end |
#consume_child_frame(child) ⇒ 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.
183 184 185 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 183 def consume_child_frame(child) @result[child.key.result] = child.value.result end |