lib/ebay/finding.rb in ebay-ruby-0.0.1 vs lib/ebay/finding.rb in ebay-ruby-0.2.0

- old
+ new

@@ -1,16 +1,9 @@ require 'ebay/request' module Ebay class Finding < Request - def initialize - @host = 'svcs.ebay.com' - @path = '/services/search/FindingService/v1' - @sandbox = 'svcs.sandbox.ebay.com' - @defaults = { - headers: { - 'X-EBAY-SOA-SECURITY-APPNAME' => Config.app_id - } - } - end + host 'svcs.ebay.com' + path '/services/search/FindingService/v1' + headers 'X-EBAY-SOA-SECURITY-APPNAME' => Config.app_id end end