Class: ZUORA::SessionHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/zuora/ZUORA.rb

Overview

/SessionHeader

session - SOAP::SOAPString

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sessionObject

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