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
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(parent, ref, result = nil) ⇒ Frame
constructor
private
A new instance of Frame.
- #set_text(value) ⇒ Object private
Constructor Details
#initialize(parent, ref, 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.
38 39 40 41 42 43 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 38 def initialize(parent, ref, result = nil) @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.
45 46 47 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 45 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.
47 48 49 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 47 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.
49 50 51 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 49 def result @result end |
Class Method Details
.new(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.
13 14 15 16 17 18 19 20 21 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 13 def new(parent, ref, result = nil) if self == Frame frame = frame_class(ref && ref.shape).allocate frame.send(:initialize, 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.
55 56 57 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 55 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.
59 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 59 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.
51 52 53 |
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 51 def set_text(value) @text << value end |