Class: Aws::Xml::Parser::Frame Private
- Inherits:
-
Object
- Object
- Aws::Xml::Parser::Frame
- Includes:
- Seahorse::Model::Shapes
- 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.
Direct Known Subclasses
BlobFrame, BooleanFrame, FlatListFrame, FloatFrame, IntegerFrame, ListFrame, MapEntryFrame, MapFrame, NullFrame, StringFrame, StructureFrame, TimestampFrame, UnknownMemberFrame
Instance Attribute Summary collapse
- #parent ⇒ Object readonly private
- #ref ⇒ Object readonly private
- #result ⇒ Object readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #child_frame(xml_name) ⇒ Object private
- #consume_child_frame(child) ⇒ Object private
-
#initialize(path, parent, ref, result) ⇒ Frame
constructor
private
A new instance of Frame.
- #path ⇒ Object private
- #set_text(value) ⇒ Object private
- #yield_unhandled_value(path, value) ⇒ Object private
Constructor Details
#initialize(path, parent, ref, result) ⇒ Frame
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 Frame.
40 41 42 43 44 45 46 |
# 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 |
Instance Attribute Details
#parent ⇒ Object (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.
48 49 50 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 48 def parent @parent end |
#ref ⇒ Object (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.
50 51 52 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 50 def ref @ref end |
#result ⇒ Object (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.
52 53 54 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 52 def result @result end |
Class Method Details
.new(path, parent, ref, result = nil) ⇒ 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.
15 16 17 18 19 20 21 22 23 |
# 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 |
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.
58 59 60 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 58 def child_frame(xml_name) NullFrame.new(xml_name, self) 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.
62 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 62 def consume_child_frame(child); end |
#path ⇒ 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.
65 66 67 68 69 70 71 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 65 def path if Stack === parent [@path] else parent.path + [@path] end end |
#set_text(value) ⇒ 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.
54 55 56 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 54 def set_text(value) @text << value end |
#yield_unhandled_value(path, value) ⇒ 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.
74 75 76 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 74 def yield_unhandled_value(path, value) parent.yield_unhandled_value(path, value) end |