Parent

Included Modules

Files

Class Index [+]

Quicksearch

SOAP::SOAPEnvelope

Attributes

header[R]
body[R]
external_content[R]

Public Class Methods

new(header = nil, body = nil) click to toggle source
     # File lib/soap/element.rb, line 240
240:   def initialize(header = nil, body = nil)
241:     super()
242:     @type = nil
243:     @elename = EleEnvelopeName
244:     @encodingstyle = nil
245:     @header = header
246:     @body = body
247:     @external_content = {}
248:     header.parent = self if header
249:     body.parent = self if body
250:   end

Public Instance Methods

body=(body) click to toggle source
     # File lib/soap/element.rb, line 257
257:   def body=(body)
258:     body.parent = self
259:     @body = body
260:   end
encode(generator, ns, attrs = {}) click to toggle source
     # File lib/soap/element.rb, line 262
262:   def encode(generator, ns, attrs = {})
263:     Generator.assign_ns(attrs, ns, elename.namespace)
264:     name = ns.name(@elename)
265:     generator.encode_tag(name, attrs)
266:     yield(@header) if @header and @header.encode?
267:     yield(@body)
268:     generator.encode_tag_end(name, true)
269:   end
header=(header) click to toggle source
     # File lib/soap/element.rb, line 252
252:   def header=(header)
253:     header.parent = self
254:     @header = header
255:   end
to_ary() click to toggle source
     # File lib/soap/element.rb, line 271
271:   def to_ary
272:     [header, body]
273:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.