Class: Aws::Xml::Parser::Frame Private

Inherits:
Object
  • Object
show all
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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#parentObject (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

#resultObject (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

#shapeObject (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