You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Xml::Parser::ListFrame

Inherits:
Frame
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/xml/parser/frame.rb

Instance Attribute Summary

Attributes inherited from Frame

#parent, #ref, #result

Instance Method Summary collapse

Methods inherited from Frame

new, #set_text

Constructor Details

#initialize(*args) ⇒ ListFrame

Returns a new instance of ListFrame



138
139
140
141
142
# File 'gems/aws-sdk-core/lib/aws-sdk-core/xml/parser/frame.rb', line 138

def initialize(*args)
  super
  @result = []
  @member_xml_name = @ref.shape.member.location_name || 'member'
end

Instance Method Details

#child_frame(xml_name) ⇒ Object



144
145
146
147
148
149
150
# File 'gems/aws-sdk-core/lib/aws-sdk-core/xml/parser/frame.rb', line 144

def child_frame(xml_name)
  if xml_name == @member_xml_name
    Frame.new(xml_name, self, @ref.shape.member)
  else
    raise NotImplementedError
  end
end

#consume_child_frame(child) ⇒ Object



152
153
154
# File 'gems/aws-sdk-core/lib/aws-sdk-core/xml/parser/frame.rb', line 152

def consume_child_frame(child)
  @result << child.result unless NullFrame === child
end