Method: Aws::Xml::Parser::StructureFrame#initialize

Defined in:
lib/aws-sdk-core/xml/parser/frame.rb

#initialize(xml_name, parent, ref, result = nil) ⇒ StructureFrame

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 StructureFrame.



82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 82

def initialize(xml_name, parent, ref, result = nil)
  super
  @result ||= ref.shape.struct_class.new
  @members = {}
  ref.shape.members.each do |member_name, member_ref|
    apply_default_value(member_name, member_ref)
    @members[xml_name(member_ref)] = {
      name: member_name,
      ref: member_ref,
    }
  end
end