Class: SOAP::RPC::MethodDef

Inherits:
Object show all
Defined in:
lib/soap/rpc/methodDef.rb

Defined Under Namespace

Classes: Parameter

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#faultsObject (readonly)

Returns the value of attribute faults.



22
23
24
# File 'lib/soap/rpc/methodDef.rb', line 22

def faults
  @faults
end

#inputuseObject

Returns the value of attribute inputuse.



19
20
21
# File 'lib/soap/rpc/methodDef.rb', line 19

def inputuse
  @inputuse
end

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/soap/rpc/methodDef.rb', line 15

def name
  @name
end

#outputuseObject

Returns the value of attribute outputuse.



20
21
22
# File 'lib/soap/rpc/methodDef.rb', line 20

def outputuse
  @outputuse
end

#parametersObject (readonly)

Returns the value of attribute parameters.



21
22
23
# File 'lib/soap/rpc/methodDef.rb', line 21

def parameters
  @parameters
end

#qnameObject (readonly)

Returns the value of attribute qname.



17
18
19
# File 'lib/soap/rpc/methodDef.rb', line 17

def qname
  @qname
end

#soapactionObject (readonly)

Returns the value of attribute soapaction.



16
17
18
# File 'lib/soap/rpc/methodDef.rb', line 16

def soapaction
  @soapaction
end

#styleObject

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

Instance Method Details

#add_parameter(io_type, name, qname, mapped_class) ⇒ Object



33
34
35
# File 'lib/soap/rpc/methodDef.rb', line 33

def add_parameter(io_type, name, qname, mapped_class)
  @parameters << Parameter.new(io_type, name, qname, mapped_class)
end