Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • soap/element.rb

Class/Module Index [+]

Quicksearch

SOAP::SOAPEnvelope

Attributes

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

Public Class Methods

new(header = nil, body = nil) click to toggle source
 
               # File soap/element.rb, line 219
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 soap/element.rb, line 236
def body=(body)
  body.parent = self
  @body = body
end
            
encode(generator, ns, attrs = {}) click to toggle source
 
               # File soap/element.rb, line 241
def encode(generator, ns, attrs = {})
  SOAPGenerator.assign_ns(attrs, ns, elename.namespace, SOAPNamespaceTag)
  name = ns.name(@elename)
  generator.encode_tag(name, attrs)

  yield(@header) if @header and @header.length > 0
  yield(@body)

  generator.encode_tag_end(name, true)
end
            
header=(header) click to toggle source
 
               # File soap/element.rb, line 231
def header=(header)
  header.parent = self
  @header = header
end
            
to_ary() click to toggle source
 
               # File soap/element.rb, line 252
def to_ary
  [header, body]
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus