Class: SOAP::Header::SimpleHandler
- Defined in:
 - lib/soap/header/simplehandler.rb
 
Instance Attribute Summary
Attributes inherited from Handler
#elename, #encodingstyle, #mustunderstand
Instance Method Summary collapse
- 
  
    
      #initialize(elename)  ⇒ SimpleHandler 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of SimpleHandler.
 - #on_inbound(header, mustunderstand) ⇒ Object
 - #on_outbound ⇒ Object
 - 
  
    
      #on_simple_inbound(header, mustunderstand)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Given header is a Hash, String or nil.
 - 
  
    
      #on_simple_outbound  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Should return a Hash, String or nil.
 
Methods inherited from Handler
#on_inbound_headeritem, #on_outbound_headeritem
Constructor Details
#initialize(elename) ⇒ SimpleHandler
Returns a new instance of SimpleHandler.
      18 19 20  | 
    
      # File 'lib/soap/header/simplehandler.rb', line 18 def initialize(elename) super(elename) end  | 
  
Instance Method Details
#on_inbound(header, mustunderstand) ⇒ Object
      36 37 38 39  | 
    
      # File 'lib/soap/header/simplehandler.rb', line 36 def on_inbound(header, mustunderstand) h = header.respond_to?(:to_obj) ? header.to_obj : header.data on_simple_inbound(h, mustunderstand) end  | 
  
#on_outbound ⇒ Object
      31 32 33 34  | 
    
      # File 'lib/soap/header/simplehandler.rb', line 31 def on_outbound h = on_simple_outbound h ? SOAPElement.from_obj(h, elename.namespace) : nil end  | 
  
#on_simple_inbound(header, mustunderstand) ⇒ Object
Given header is a Hash, String or nil.
      28 29  | 
    
      # File 'lib/soap/header/simplehandler.rb', line 28 def on_simple_inbound(header, mustunderstand) end  | 
  
#on_simple_outbound ⇒ Object
Should return a Hash, String or nil.
      23 24 25  | 
    
      # File 'lib/soap/header/simplehandler.rb', line 23 def on_simple_outbound nil end  |