lib/ebay/shopping.rb in ebay-ruby-0.3.2 vs lib/ebay/shopping.rb in ebay-ruby-0.3.3
- old
+ new
@@ -14,29 +14,29 @@
self.endpoint = 'https://open.api.ebay.com/shopping'
# @return [String]
attr_reader :app_id
- # @return [String, nil]
+ # @return [String]
attr_reader :response_encoding
- # @return [String, nil]
+ # @return [String]
attr_reader :site_id
# @return [String]
attr_reader :version
- # @return [String, nil]
+ # @return [String]
attr_reader :version_handling
- # @return [String, nil]
+ # @return [String]
attr_reader :tracking_id
- # @return [String, nil]
+ # @return [String]
attr_reader :tracking_partner_code
- # @return [String, nil]
+ # @return [String]
attr_reader :affiliate_user_id
# Returns a Finding API request instance
#
# @param [String] app_id
@@ -45,10 +45,10 @@
# @param [String] version
# @param [String] version_handling
# @param [String] tracking_id
# @param [String] tracking_partner_code
# @param [String] affiliate_user_id
- def initialize(app_id: Config.app_id, response_encoding: 'JSON',
+ def initialize(app_id: Config.app_id, response_encoding: nil,
site_id: nil, version: '1119',
version_handling: nil, tracking_id: nil,
tracking_partner_code: nil, affiliate_user_id: nil)
@app_id = app_id
@response_encoding = response_encoding