Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • soap/element.rb

Class/Module Index [+]

Quicksearch

SOAP::SOAPFault

Public Class Methods

new(faultcode = nil, faultstring = nil, faultactor = nil, detail = nil) click to toggle source
 
               # File soap/element.rb, line 59
def initialize(faultcode = nil, faultstring = nil, faultactor = nil, detail = nil)
  super(EleFaultName)
  @elename = EleFaultName
  @encodingstyle = EncodingNamespace

  if faultcode
    self.faultcode = faultcode
    self.faultstring = faultstring
    self.faultactor = faultactor
    self.detail = detail
    self.faultcode.elename = EleFaultCodeName if self.faultcode
    self.faultstring.elename = EleFaultStringName if self.faultstring
    self.faultactor.elename = EleFaultActorName if self.faultactor
    self.detail.elename = EleFaultDetailName if self.detail
  end
  faultcode.parent = self if faultcode
  faultstring.parent = self if faultstring
  faultactor.parent = self if faultactor
  detail.parent = self if detail
end
            

Public Instance Methods

detail() click to toggle source
 
               # File soap/element.rb, line 39
def detail
  self['detail']
end
            
detail=(rhs) click to toggle source
 
               # File soap/element.rb, line 55
def detail=(rhs)
  self['detail'] = rhs
end
            
encode(generator, ns, attrs = {}) click to toggle source
 
               # File soap/element.rb, line 80
def encode(generator, ns, attrs = {})
  SOAPGenerator.assign_ns(attrs, ns, EnvelopeNamespace)
  SOAPGenerator.assign_ns(attrs, ns, EncodingNamespace)
  attrs[ns.name(AttrEncodingStyleName)] = EncodingNamespace
  name = ns.name(@elename)
  generator.encode_tag(name, attrs)
  yield(self.faultcode)
  yield(self.faultstring)
  yield(self.faultactor)
  yield(self.detail) if self.detail
  generator.encode_tag_end(name, true)
end
            
faultactor() click to toggle source
 
               # File soap/element.rb, line 35
def faultactor
  self['faultactor']
end
            
faultactor=(rhs) click to toggle source
 
               # File soap/element.rb, line 51
def faultactor=(rhs)
  self['faultactor'] = rhs
end
            
faultcode() click to toggle source
 
               # File soap/element.rb, line 27
def faultcode
  self['faultcode']
end
            
faultcode=(rhs) click to toggle source
 
               # File soap/element.rb, line 43
def faultcode=(rhs)
  self['faultcode'] = rhs
end
            
faultstring() click to toggle source
 
               # File soap/element.rb, line 31
def faultstring
  self['faultstring']
end
            
faultstring=(rhs) click to toggle source
 
               # File soap/element.rb, line 47
def faultstring=(rhs)
  self['faultstring'] = rhs
end