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.
24 25 26 27 28 29 30 31 |
# File 'lib/soap/rpc/methodDef.rb', line 24 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.
22 23 24 |
# File 'lib/soap/rpc/methodDef.rb', line 22 def faults @faults end |
#inputuse ⇒ Object
Returns the value of attribute inputuse.
19 20 21 |
# File 'lib/soap/rpc/methodDef.rb', line 19 def inputuse @inputuse end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/soap/rpc/methodDef.rb', line 15 def name @name end |
#outputuse ⇒ Object
Returns the value of attribute outputuse.
20 21 22 |
# File 'lib/soap/rpc/methodDef.rb', line 20 def outputuse @outputuse end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
21 22 23 |
# File 'lib/soap/rpc/methodDef.rb', line 21 def parameters @parameters end |
#qname ⇒ Object (readonly)
Returns the value of attribute qname.
17 18 19 |
# File 'lib/soap/rpc/methodDef.rb', line 17 def qname @qname end |
#soapaction ⇒ Object (readonly)
Returns the value of attribute soapaction.
16 17 18 |
# File 'lib/soap/rpc/methodDef.rb', line 16 def soapaction @soapaction end |
#style ⇒ Object
Returns the value of attribute style.
18 19 20 |
# File 'lib/soap/rpc/methodDef.rb', line 18 def style @style end |
Class Method Details
.to_param(param) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/soap/rpc/methodDef.rb', line 37 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 |