class Aws::Xml::Parser::MapEntryFrame

Attributes

key[R]

@return [StringFrame]

value[R]

@return [Frame]

Public Class Methods

new(xml_name, *args) click to toggle source
Calls superclass method Aws::Xml::Parser::Frame::new
# File lib/aws-sdk-core/xml/parser/frame.rb, line 206
def initialize(xml_name, *args)
  super
  @key_name = @ref.shape.key.location_name || 'key'
  @key = Frame.new(xml_name, self, @ref.shape.key)
  @value_name = @ref.shape.value.location_name || 'value'
  @value = Frame.new(xml_name, self, @ref.shape.value)
end

Public Instance Methods

child_frame(xml_name) click to toggle source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 220
def child_frame(xml_name)
  if @key_name == xml_name
    @key
  elsif @value_name == xml_name
    @value
  else
    NullFrame.new(xml_name, self)
  end
end