Class: WSDL::SOAP::Fault

Inherits:
Info
  • Object
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.



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

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

Instance Attribute Details

#encodingstyleObject (readonly)

Returns the value of attribute encodingstyle



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

def encodingstyle
  @encodingstyle
end

#nameObject (readonly)

required



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

def name
  @name
end

#namespaceObject (readonly)

Returns the value of attribute namespace



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

def namespace
  @namespace
end

#useObject (readonly)

required



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

def use
  @use
end

Instance Method Details

#parse_attr(attr, value) ⇒ Object



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

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



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

def parse_element(element)
  nil
end

#targetnamespaceObject



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

def targetnamespace
  parent.targetnamespace
end