class Aws::Xml::Parser::MapEntryFrame
Attributes
key[R]
@return [StringFrame]
value[R]
@return [Frame]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
Aws::Xml::Parser::Frame.new
# File lib/aws-sdk-core/xml/parser/frame.rb, line 191 def initialize(*args) super @key_name = @ref.shape.key.location_name || 'key' @key = Frame.new(self, @ref.shape.key) @value_name = @ref.shape.value.location_name || 'value' @value = Frame.new(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 205 def child_frame(xml_name) if @key_name == xml_name @key elsif @value_name == xml_name @value else NullFrame.new(self) end end