class SOAP::SOAPEnvelope
Attributes
body[R]
external_content[R]
header[R]
Public Class Methods
new(header = nil, body = nil)
click to toggle source
Calls superclass method
SOAP::SOAPCompoundtype.new
# File lib/soap/element.rb, line 240 def initialize(header = nil, body = nil) super() @type = nil @elename = EleEnvelopeName @encodingstyle = nil @header = header @body = body @external_content = {} header.parent = self if header body.parent = self if body end
Public Instance Methods
body=(body)
click to toggle source
# File lib/soap/element.rb, line 257 def body=(body) body.parent = self @body = body end
encode(generator, ns, attrs = {}) { |header| ... }
click to toggle source
# File lib/soap/element.rb, line 262 def encode(generator, ns, attrs = {}) Generator.assign_ns(attrs, ns, elename.namespace) name = ns.name(@elename) generator.encode_tag(name, attrs) yield(@header) if @header and @header.encode? yield(@body) generator.encode_tag_end(name, true) end
header=(header)
click to toggle source
# File lib/soap/element.rb, line 252 def header=(header) header.parent = self @header = header end
to_ary()
click to toggle source
# File lib/soap/element.rb, line 271 def to_ary [header, body] end