You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

Inherits:
Object
  • Object
show all
Includes:
Seahorse::Model::Shapes
Defined in:
gems/aws-sdk-core/lib/aws-sdk-core/xml/parser/frame.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, parent, ref, result) ⇒ Frame

Returns a new instance of Frame



38
39
40
41
42
43
44
# File 'gems/aws-sdk-core/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)

Returns the value of attribute parent



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

def parent
  @parent
end

#refObject (readonly)

Returns the value of attribute ref



48
49
50
# File 'gems/aws-sdk-core/lib/aws-sdk-core/xml/parser/frame.rb', line 48

def ref
  @ref
end

#resultObject (readonly)

Returns the value of attribute result



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

def result
  @result
end

Class Method Details

.new(path, parent, ref, result = nil) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'gems/aws-sdk-core/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



56
57
58
# File 'gems/aws-sdk-core/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



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

def consume_child_frame(child); end

#set_text(value) ⇒ Object



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

def set_text(value)
  @text << value
end