Class: SOAP::RPC::MethodDef
Defined Under Namespace
Classes: Parameter
Instance Attribute Summary collapse
-
#faults ⇒ Object
readonly
Returns the value of attribute faults.
-
#inputuse ⇒ Object
Returns the value of attribute inputuse.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#outputuse ⇒ Object
Returns the value of attribute outputuse.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#qname ⇒ Object
readonly
Returns the value of attribute qname.
-
#soapaction ⇒ Object
readonly
Returns the value of attribute soapaction.
-
#style ⇒ Object
Returns the value of attribute style.
Class Method Summary collapse
Instance Method Summary collapse
- #add_parameter(io_type, name, qname, mapped_class) ⇒ Object
-
#initialize(name, soapaction, qname) ⇒ MethodDef
constructor
A new instance of MethodDef.
Constructor Details
#initialize(name, soapaction, qname) ⇒ MethodDef
Returns a new instance of MethodDef.
23 24 25 26 27 28 29 30 |
# File 'lib/soap/rpc/methodDef.rb', line 23 def initialize(name, soapaction, qname) @name = name @soapaction = soapaction @qname = qname @style = @inputuse = @outputuse = nil @parameters = [] @faults = {} end |
Instance Attribute Details
#faults ⇒ Object (readonly)
Returns the value of attribute faults.
21 22 23 |
# File 'lib/soap/rpc/methodDef.rb', line 21 def faults @faults end |
#inputuse ⇒ Object
Returns the value of attribute inputuse.
18 19 20 |
# File 'lib/soap/rpc/methodDef.rb', line 18 def inputuse @inputuse end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/soap/rpc/methodDef.rb', line 14 def name @name end |
#outputuse ⇒ Object
Returns the value of attribute outputuse.
19 20 21 |
# File 'lib/soap/rpc/methodDef.rb', line 19 def outputuse @outputuse end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
20 21 22 |
# File 'lib/soap/rpc/methodDef.rb', line 20 def parameters @parameters end |
#qname ⇒ Object (readonly)
Returns the value of attribute qname.
16 17 18 |
# File 'lib/soap/rpc/methodDef.rb', line 16 def qname @qname end |
#soapaction ⇒ Object (readonly)
Returns the value of attribute soapaction.
15 16 17 |
# File 'lib/soap/rpc/methodDef.rb', line 15 def soapaction @soapaction end |
#style ⇒ Object
Returns the value of attribute style.
17 18 19 |
# File 'lib/soap/rpc/methodDef.rb', line 17 def style @style end |
Class Method Details
.to_param(param) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/soap/rpc/methodDef.rb', line 36 def self.to_param(param) if param.respond_to?(:io_type) param else io_type, name, param_type = param mapped_class_str, nsdef, namedef = param_type if nsdef && namedef qname = XSD::QName.new(nsdef, namedef) else qname = nil end MethodDef::Parameter.new(io_type.to_sym, name, qname, mapped_class_str) end end |