Class: ZUORA::SessionHeader
- Inherits:
-
Object
- Object
- ZUORA::SessionHeader
- Defined in:
- lib/zuora/ZUORA.rb
Overview
/SessionHeader
session - SOAP::SOAPString
Instance Attribute Summary collapse
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(session = nil) ⇒ SessionHeader
constructor
A new instance of SessionHeader.
- #on_outbound_headeritem(test) ⇒ Object
Constructor Details
#initialize(session = nil) ⇒ SessionHeader
Returns a new instance of SessionHeader.
1325 1326 1327 |
# File 'lib/zuora/ZUORA.rb', line 1325 def initialize(session = nil) @session = session end |
Instance Attribute Details
#session ⇒ Object
Returns the value of attribute session.
1323 1324 1325 |
# File 'lib/zuora/ZUORA.rb', line 1323 def session @session end |
Instance Method Details
#on_outbound_headeritem(test) ⇒ Object
1329 1330 1331 1332 1333 |
# File 'lib/zuora/ZUORA.rb', line 1329 def on_outbound_headeritem(test) sobj = SOAP::SOAPElement.new(XSD::QName.new("ns1", 'SessionHeader')) sobj.add(SOAP::SOAPElement.new(XSD::QName.new("ns1", "session"), @session)) ::SOAP::SOAPHeaderItem.new(sobj, false) end |