class Aws::Xml::Parser::Frame
Attributes
Public Class Methods
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 15 def new(path, parent, ref, result = nil) if self == Frame frame = frame_class(ref).allocate frame.send(:initialize, path, parent, ref, result) frame else super end end
Calls superclass method
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 40 def initialize(path, parent, ref, result) @path = path @parent = parent @ref = ref @result = result @text = [] end
Private Class Methods
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 27 def frame_class(ref) klass = FRAME_CLASSES[ref.shape.class] if ListFrame == klass && (ref.shape.flattened || ref["flattened"]) FlatListFrame elsif MapFrame == klass && (ref.shape.flattened || ref["flattened"]) MapEntryFrame else klass end end
Public Instance Methods
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 58 def child_frame(xml_name) NullFrame.new(xml_name, self) end
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 62 def consume_child_frame(child); end
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 65 def path if Stack === parent [@path] else parent.path + [@path] end end
@api private
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 54 def set_text(value) @text << value end
Source
# File lib/aws-sdk-core/xml/parser/frame.rb, line 74 def yield_unhandled_value(path, value) parent.yield_unhandled_value(path, value) end
@api private