Class: EBay::RequesterCredentialsHandler

Inherits:
SOAP::Header::SimpleHandler
  • Object
show all
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

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_outboundObject



43
44
45
46
# File 'lib/RequesterCredentialsHandler.rb', line 43

def on_simple_outbound 
  { EbayAuthToken => @token, 
    Credentials => { DevId => @devId, AppId => @appId, AuthCert => @cert } }
end