SOAP::SOAPHeader (Class)

In: soap/element.rb
Parent: SOAPArray

Methods

encode   length   new  

Included Modules

SOAPEnvelopeElement

Public Class methods

[Source]

# File soap/element.rb, line 171
  def initialize()
    super(nil, 1)       # rank == 1

    @elename = EleHeaderName
    @encodingstyle = nil
  end

Public Instance methods

[Source]

# File soap/element.rb, line 177
  def encode(generator, ns, attrs = {})
    name = ns.name(@elename)
    generator.encode_tag(name, attrs)
    @data.each do |data|
      yield(data, true)
    end
    generator.encode_tag_end(name, true)
  end

[Source]

# File soap/element.rb, line 186
  def length
    @data.length
  end

[Validate]