Class: WSDL::SOAP::Fault

Inherits:
Info show all
Defined in:
lib/wsdl/soap/fault.rb

Instance Attribute Summary collapse

Attributes inherited from Info

#id, #parent, #root

Instance Method Summary collapse

Methods inherited from Info

#inspect, #parse_epilogue

Constructor Details

#initializeFault

Returns a new instance of Fault.


23
24
25
26
27
28
29
# File 'lib/wsdl/soap/fault.rb', line 23

def initialize
  super
  @name = nil
  @use = nil
  @encodingstyle = nil
  @namespace = nil
end

Instance Attribute Details

#encodingstyleObject (readonly)

Returns the value of attribute encodingstyle


20
21
22
# File 'lib/wsdl/soap/fault.rb', line 20

def encodingstyle
  @encodingstyle
end

#nameObject (readonly)

required


18
19
20
# File 'lib/wsdl/soap/fault.rb', line 18

def name
  @name
end

#namespaceObject (readonly)

Returns the value of attribute namespace


21
22
23
# File 'lib/wsdl/soap/fault.rb', line 21

def namespace
  @namespace
end

#useObject (readonly)

required


19
20
21
# File 'lib/wsdl/soap/fault.rb', line 19

def use
  @use
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object


39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/wsdl/soap/fault.rb', line 39

def parse_attr(attr, value)
  case attr
  when NameAttrName
    @name = XSD::QName.new(targetnamespace, value.source)
  when UseAttrName
    @use = value.source
  when EncodingStyleAttrName
    @encodingstyle = value.source
  when NamespaceAttrName
    @namespace = value.source
  else
    nil
  end
end

#parse_element(element) ⇒ Object


35
36
37
# File 'lib/wsdl/soap/fault.rb', line 35

def parse_element(element)
  nil
end

#targetnamespaceObject


31
32
33
# File 'lib/wsdl/soap/fault.rb', line 31

def targetnamespace
  parent.targetnamespace
end