Sha256: dece499ab105ae20f0dec956bc2f7a7019d1701f9d77d620b159258ebc97d188

Contents?: true

Size: 685 Bytes

Versions: 15

Compression:

Stored size: 685 Bytes

Contents

require 'forwardable'
require 'mws/cart_information'
require 'mws/customer_information'
require 'mws/feeds'
require 'mws/fulfillment_inbound_shipment'
require 'mws/fulfillment_inventory'
require 'mws/fulfillment_outbound_shipment'
require 'mws/off_amazon_payments'
require 'mws/orders'
require 'mws/products'
require 'mws/recommendations'
require 'mws/reports'
require 'mws/sellers'
require 'mws/subscriptions'
require 'mws/webstore'

module MWS
  class << self
    extend Forwardable

    MWS.constants.each do |klass|
      method_name = klass.to_s.gsub(/(.)([A-Z])/, '\1_\2').downcase
      def_delegator MWS.const_get(klass).const_get(:Client), :new, method_name
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
peddler-0.18.0 lib/mws.rb
peddler-0.17.1 lib/mws.rb
peddler-0.17.0 lib/mws.rb
peddler-0.16.0 lib/mws.rb
peddler-0.15.0 lib/mws.rb
peddler-0.14.0 lib/mws.rb
peddler-0.13.0 lib/mws.rb
peddler-0.12.7 lib/mws.rb
peddler-0.12.5 lib/mws.rb
peddler-0.12.4 lib/mws.rb
peddler-0.12.2 lib/mws.rb
peddler-0.12.1 lib/mws.rb
peddler-0.12.0 lib/mws.rb
peddler-0.11.1 lib/mws.rb
peddler-0.11.0 lib/mws.rb