lib/peddler.rb in peddler-0.3.1 vs lib/peddler.rb in peddler-0.4.1
- old
+ new
@@ -1,18 +1,6 @@
-# Peddler is a Ruby wrapper to the Amazon Inventory management API.
-module Peddler
+%w(
+ feeds fulfillment_inbound_shipment fulfillment_inventory
+ fulfillment_outbound_shipment orders products reports sellers
+).each do |service|
+ require "peddler/#{service}"
end
-
-require 'active_support/core_ext/hash'
-require 'net/https'
-require 'ostruct'
-require 'peddler/version'
-require 'peddler/client'
-require 'peddler/handlers'
-require 'peddler/feeds'
-require 'peddler/inventory'
-require 'peddler/legacy_reports'
-require 'peddler/refunds'
-require 'peddler/reports'
-require 'peddler/transport'
-require 'tempfile'
-require 'time'