Class: Aws::Xml::Parser::MapFrame Private

Inherits:
Frame
  • Object
show all
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

#parent, #result, #shape

Instance Method Summary collapse

Methods inherited from Frame

new, #set_text

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.



181
182
183
184
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 181

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.



186
187
188
189
190
191
192
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 186

def child_frame(xml_name)
  if xml_name == 'entry'
    MapEntryFrame.new(self, @shape)
  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.



194
195
196
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 194

def consume_child_frame(child)
  @result[child.key.result] = child.value.result
end