Class: Aws::Xml::Parser::ListFrame 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) ⇒ ListFrame
constructor
private
A new instance of ListFrame.
Methods inherited from Frame
Constructor Details
#initialize(*args) ⇒ ListFrame
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 ListFrame.
123 124 125 126 127 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 123 def initialize(*args) super @result = [] @member_xml_name = @ref.shape.member.location_name || 'member' 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.
129 130 131 132 133 134 135 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 129 def child_frame(xml_name) if xml_name == @member_xml_name Frame.new(self, @ref.shape.member) 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.
137 138 139 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 137 def consume_child_frame(child) @result << child.result unless NullFrame === child end |