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



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

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



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

def encodingstyle
  @encodingstyle
end

#handlerObject (readonly)

Returns the value of attribute handler



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

def handler
  @handler
end

#nameObject (readonly)

Returns the value of attribute name



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

def name
  @name
end

#nodeObject (readonly)

Returns the value of attribute node



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

def node
  @node
end

#nsObject (readonly)

Returns the value of attribute ns



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

def ns
  @ns
end

Instance Method Details

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

to avoid memory consumption



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

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