Class: Aws::Xml::Parser::Frame Private
- Inherits:
-
Object
- Object
- Aws::Xml::Parser::Frame
- 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
Instance Attribute Summary collapse
- #parent ⇒ Object readonly private
- #result ⇒ Object readonly private
- #shape ⇒ Object readonly private
Class Method Summary collapse
Instance Method Summary collapse
- #child_frame(xml_name) ⇒ Object private
- #consume_child_frame(child) ⇒ Object private
-
#initialize(parent, shape, result = nil) ⇒ Frame
constructor
private
A new instance of Frame.
- #set_text(value) ⇒ Object private
Constructor Details
#initialize(parent, shape, result = nil) ⇒ 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.
9 10 11 12 13 14 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 9 def initialize(parent, shape, result = nil) @parent = parent @shape = shape @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.
16 17 18 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 16 def parent @parent 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.
20 21 22 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 20 def result @result end |
#shape ⇒ 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.
18 19 20 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 18 def shape @shape end |
Class Method Details
.new(parent, shape, 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.
36 37 38 39 40 41 42 43 44 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 36 def new(parent, shape, result = nil) if self == Frame frame = frame_class(shape).allocate frame.send(:initialize, parent, shape, 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.
26 27 28 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 26 def child_frame(xml_name) NullFrame.new(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.
30 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 30 def consume_child_frame(child); 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.
22 23 24 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 22 def set_text(value) @text << value end |