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

- (MethodDef) initialize(name, soapaction, qname)

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

- (Object) faults (readonly)

Returns the value of attribute faults



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

def faults
  @faults
end

- (Object) inputuse

Returns the value of attribute inputuse



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

def inputuse
  @inputuse
end

- (Object) name (readonly)

Returns the value of attribute name



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

def name
  @name
end

- (Object) outputuse

Returns the value of attribute outputuse



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

def outputuse
  @outputuse
end

- (Object) parameters (readonly)

Returns the value of attribute parameters



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

def parameters
  @parameters
end

- (Object) qname (readonly)

Returns the value of attribute qname



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

def qname
  @qname
end

- (Object) soapaction (readonly)

Returns the value of attribute soapaction



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

def soapaction
  @soapaction
end

- (Object) style

Returns the value of attribute style



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

def style
  @style
end

Class Method Details

+ (Object) to_param(param)



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

- (Object) add_parameter(io_type, name, qname, mapped_class)



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