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

In Files

  • soap/rpc/element.rb

Class/Module Index [+]

Quicksearch

SOAP::RPC::SOAPMethodResponse

Public Class Methods

new(qname, param_def = nil) click to toggle source
 
               # File soap/rpc/element.rb, line 277
def initialize(qname, param_def = nil)
  super(qname, param_def)
  @retval = nil
end
            

Public Instance Methods

each() click to toggle source
 
               # File soap/rpc/element.rb, line 289
def each
  if @retval_name and !@retval.is_a?(SOAPVoid)
    yield(@retval_name, @retval)
  end

  output_params.each do |name|
    unless @outparam[name]
      raise ParameterError.new("parameter: #{name} was not given")
    end
    yield(name, @outparam[name])
  end
end
            
retval=(retval) click to toggle source
 
               # File soap/rpc/element.rb, line 282
def retval=(retval)
  @retval = retval
  @retval.elename = @retval.elename.dup_name(@retval_name || 'return')
  retval.parent = self
  retval
end