class EbayClient::Header
Attributes
configuration[R]
namespace[R]
Public Class Methods
new(configuration, namespace)
click to toggle source
# File lib/ebay_client/header.rb, line 4 def initialize(configuration, namespace) @configuration = configuration @namespace = namespace end
Public Instance Methods
to_hash()
click to toggle source
# File lib/ebay_client/header.rb, line 9 def to_hash { ns_key(:RequesterCredentials) => { ns_key(:eBayAuthToken) => configuration.token, ns_key(:Credentials) => { ns_key(:AppId) => configuration.appid, ns_key(:DevId) => configuration.devid, ns_key(:AuthCert) => configuration.certid } } } end
Protected Instance Methods
ns_key(key)
click to toggle source
# File lib/ebay_client/header.rb, line 23 def ns_key(key) "#{namespace}:#{key}" end