Class: Aws::Xml::Parser::MapEntryFrame 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 collapse
- #key ⇒ StringFrame readonly private
- #value ⇒ Frame readonly private
Attributes inherited from Frame
Instance Method Summary collapse
- #child_frame(xml_name) ⇒ Object private
-
#initialize(*args) ⇒ MapEntryFrame
constructor
private
A new instance of MapEntryFrame.
Methods inherited from Frame
#consume_child_frame, new, #set_text
Constructor Details
#initialize(*args) ⇒ MapEntryFrame
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 MapEntryFrame.
199 200 201 202 203 204 205 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 199 def initialize(*args) super @key_name = @shape.key.location_name || 'key' @key = Frame.new(self, @shape.key) @value_name = @shape.value.location_name || 'value' @value = Frame.new(self, @shape.value) end |
Instance Attribute Details
#key ⇒ StringFrame (readonly)
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.
208 209 210 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 208 def key @key end |
#value ⇒ Frame (readonly)
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.
211 212 213 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 211 def value @value 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.
213 214 215 216 217 218 219 220 221 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 213 def child_frame(xml_name) if @key_name == xml_name @key elsif @value_name == xml_name @value else NullFrame.new(self) end end |