Class: SOAP::Parser::ParseFrame

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/parser.rb

Defined Under Namespace

Classes: NodeContainer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ns, name, node, encodingstyle, handler) ⇒ ParseFrame

Returns a new instance of ParseFrame.



52
53
54
55
56
57
58
# File 'lib/soap/parser.rb', line 52

def initialize(ns, name, node, encodingstyle, handler)
  @ns = ns
  @name = name
  @node = NodeContainer.new(node)
  @encodingstyle = encodingstyle
  @handler = handler
end

Instance Attribute Details

#encodingstyleObject (readonly)

Returns the value of attribute encodingstyle.



33
34
35
# File 'lib/soap/parser.rb', line 33

def encodingstyle
  @encodingstyle
end

#handlerObject (readonly)

Returns the value of attribute handler.



34
35
36
# File 'lib/soap/parser.rb', line 34

def handler
  @handler
end

#nameObject (readonly)

Returns the value of attribute name.



31
32
33
# File 'lib/soap/parser.rb', line 31

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node.



30
31
32
# File 'lib/soap/parser.rb', line 30

def node
  @node
end

#nsObject (readonly)

Returns the value of attribute ns.



32
33
34
# File 'lib/soap/parser.rb', line 32

def ns
  @ns
end

Instance Method Details

#update(ns, name, node, encodingstyle, handler) ⇒ Object

to avoid memory consumption



61
62
63
64
65
66
67
68
# File 'lib/soap/parser.rb', line 61

def update(ns, name, node, encodingstyle, handler)
  @ns = ns
  @name = name
  @node.replace_node(node)
  @encodingstyle = encodingstyle
  @handler = handler
  self
end