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
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus