Class: SOAP::RPC::SOAPMethodResponse
- Inherits:
-
SOAPMethod
- Object
- XSD::NSDBase
- SOAPStruct
- SOAPMethod
- SOAP::RPC::SOAPMethodResponse
- Defined in:
- lib/soap/rpc/element.rb
Constant Summary
Constants inherited from SOAPMethod
SOAP::RPC::SOAPMethod::IN, SOAP::RPC::SOAPMethod::INOUT, SOAP::RPC::SOAPMethod::OUT, SOAP::RPC::SOAPMethod::RETVAL
Constants included from SOAP
AttrActor, AttrActorName, AttrArrayType, AttrArrayTypeName, AttrEncodingStyle, AttrEncodingStyleName, AttrHref, AttrHrefName, AttrId, AttrIdName, AttrMustUnderstand, AttrMustUnderstandName, AttrOffset, AttrOffsetName, AttrPosition, AttrPositionName, AttrRoot, AttrRootName, Base64Literal, EleBody, EleBodyName, EleEnvelope, EleEnvelopeName, EleFault, EleFaultActor, EleFaultActorName, EleFaultCode, EleFaultCodeName, EleFaultDetail, EleFaultDetailName, EleFaultName, EleFaultString, EleFaultStringName, EleHeader, EleHeaderName, EncodingNamespace, EnvelopeNamespace, LiteralNamespace, MediaType, NextActor, PropertyName, SOAPProxy, TypeMap, VERSION, ValueArray, ValueArrayName
Instance Attribute Summary
Attributes inherited from SOAPMethod
#inparam, #outparam, #param_def, #retval_class_name, #retval_name
Attributes included from SOAPCompoundtype
Attributes included from SOAPType
#definedtype, #elename, #encodingstyle, #extraattr, #force_typed, #id, #parent, #position, #precedents, #root
Attributes inherited from XSD::NSDBase
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(qname, param_def = nil) ⇒ SOAPMethodResponse
constructor
A new instance of SOAPMethodResponse.
- #retval ⇒ Object
- #retval=(retval) ⇒ Object
Methods inherited from SOAPMethod
create_doc_param_def, create_rpc_param_def, derive_rpc_param_def, #get_paramtypes, #have_member, #have_outparam?, #input_param_types, #input_params, #output_param_types, #output_params, param_count, #set_outparam, #set_param
Methods inherited from SOAPStruct
#[], #[]=, #add, decode, #have_member, #key?, #members, #replace, #to_obj, #to_s
Methods included from SOAPType
Methods inherited from XSD::NSDBase
Constructor Details
#initialize(qname, param_def = nil) ⇒ SOAPMethodResponse
Returns a new instance of SOAPMethodResponse.
322 323 324 325 |
# File 'lib/soap/rpc/element.rb', line 322 def initialize(qname, param_def = nil) super(qname, param_def) @retval = nil end |
Instance Method Details
#each ⇒ Object
338 339 340 341 342 343 344 345 346 347 348 349 |
# File 'lib/soap/rpc/element.rb', line 338 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 ⇒ Object
327 328 329 |
# File 'lib/soap/rpc/element.rb', line 327 def retval @retval end |
#retval=(retval) ⇒ Object
331 332 333 334 335 336 |
# File 'lib/soap/rpc/element.rb', line 331 def retval=(retval) @retval = retval @retval.elename = @retval.elename.dup_name(@retval_name || 'return') retval.parent = self retval end |