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

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.



38
39
40
41
42
43
44
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 38

def initialize(path, parent, ref, result)
  @path = path
  @parent = parent
  @ref = ref
  @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.



46
47
48
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 46

def parent
  @parent
end

#refObject (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 ref
  @ref
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.



50
51
52
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 50

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.



13
14
15
16
17
18
19
20
21
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 13

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.



56
57
58
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 56

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.



60
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 60

def consume_child_frame(child); end

#pathObject

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.



63
64
65
66
67
68
69
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 63

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.



52
53
54
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 52

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.



72
73
74
# File 'lib/aws-sdk-core/xml/parser/frame.rb', line 72

def yield_unhandled_value(path, value)
  parent.yield_unhandled_value(path, value)
end