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



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

#faultsObject (readonly)

Returns the value of attribute faults



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

def faults
  @faults
end

#inputuseObject

Returns the value of attribute inputuse



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

def inputuse
  @inputuse
end

#nameObject (readonly)

Returns the value of attribute name



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

def name
  @name
end

#outputuseObject

Returns the value of attribute outputuse



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

def outputuse
  @outputuse
end

#parametersObject (readonly)

Returns the value of attribute parameters



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

def parameters
  @parameters
end

#qnameObject (readonly)

Returns the value of attribute qname



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

def qname
  @qname
end

#soapactionObject (readonly)

Returns the value of attribute soapaction



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

def soapaction
  @soapaction
end

#styleObject

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

Instance Method Details

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



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

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