Included Modules

Files

Class Index [+]

Quicksearch

SOAP::SOAPHeader

Attributes

force_encode[W]

Public Class Methods

new() click to toggle source
     # File lib/soap/element.rb, line 195
195:   def initialize
196:     super(nil)
197:     @elename = EleHeaderName
198:     @encodingstyle = nil
199:     @force_encode = false
200:   end

Public Instance Methods

add(name, value) click to toggle source
     # File lib/soap/element.rb, line 211
211:   def add(name, value)
212:     actor = value.extraattr[AttrActorName]
213:     mu = value.extraattr[AttrMustUnderstandName]
214:     encstyle = value.extraattr[AttrEncodingStyleName]
215:     mu_value = mu.nil? ? nil : (mu == '1')
216:     # to remove mustUnderstand attribute, set it to nil
217:     item = SOAPHeaderItem.new(value, mu_value, encstyle, actor)
218:     super(name, item)
219:   end
encode(generator, ns, attrs = {}) click to toggle source
     # File lib/soap/element.rb, line 202
202:   def encode(generator, ns, attrs = {})
203:     name = ns.name(@elename)
204:     generator.encode_tag(name, attrs)
205:     @data.each do |data|
206:       yield(data)
207:     end
208:     generator.encode_tag_end(name, @data.size > 0)
209:   end
encode?() click to toggle source
     # File lib/soap/element.rb, line 226
226:   def encode?
227:     @force_encode or length > 0
228:   end
length() click to toggle source
     # File lib/soap/element.rb, line 221
221:   def length
222:     @data.length
223:   end
Also aliased as: size
size() click to toggle source
Alias for: length

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.