Class: EBay::RequesterCredentialsHandler
- Inherits:
-
SOAP::Header::SimpleHandler
- Object
- SOAP::Header::SimpleHandler
- EBay::RequesterCredentialsHandler
- Defined in:
- lib/RequesterCredentialsHandler.rb
Constant Summary collapse
- HeaderName =
XSD::QName.new('urn:ebay:apis:eBLBaseComponents', 'RequesterCredentials')
- Credentials =
XSD::QName.new('urn:ebay:apis:eBLBaseComponents', 'Credentials')
- EbayAuthToken =
XSD::QName.new(nil, 'eBayAuthToken')
- DevId =
XSD::QName.new(nil, 'DevId')
- AppId =
XSD::QName.new(nil, 'AppId')
- AuthCert =
XSD::QName.new(nil, 'AuthCert')
Instance Method Summary collapse
-
#initialize(eBayAuthToken, devId, appId, authCert) ⇒ RequesterCredentialsHandler
constructor
A new instance of RequesterCredentialsHandler.
- #on_simple_outbound ⇒ Object
Constructor Details
#initialize(eBayAuthToken, devId, appId, authCert) ⇒ RequesterCredentialsHandler
Returns a new instance of RequesterCredentialsHandler.
38 39 40 41 |
# File 'lib/RequesterCredentialsHandler.rb', line 38 def initialize(eBayAuthToken, devId, appId, authCert) super(HeaderName) @token, @devId, @appId, @cert = eBayAuthToken, devId, appId, authCert end |
Instance Method Details
#on_simple_outbound ⇒ Object
43 44 45 46 |
# File 'lib/RequesterCredentialsHandler.rb', line 43 def on_simple_outbound { EbayAuthToken => @token, Credentials => { DevId => @devId, AppId => @appId, AuthCert => @cert } } end |