Sha256: 06ea03e0beee069d5356756c7710c40ef2bce01e28a197c1f173ae9e8b3fe80e

Contents?: true

Size: 747 Bytes

Versions: 6

Compression:

Stored size: 747 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'
require 'mws/easy_ship'
require 'mws/feeds'
require 'mws/finances'
require 'mws/fulfillment_inbound_shipment'
require 'mws/fulfillment_inventory'
require 'mws/fulfillment_outbound_shipment'
require 'mws/merchant_fulfillment'
require 'mws/orders'
require 'mws/products'
require 'mws/recommendations'
require 'mws/reports'
require 'mws/sellers'
require 'mws/shipment_invoicing'
require 'mws/subscriptions'

# The various Amazon MWS API sections.
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

6 entries across 6 versions & 1 rubygems

Version Path
peddler-2.4.5 lib/mws.rb
peddler-2.4.4 lib/mws.rb
peddler-2.4.3 lib/mws.rb
peddler-2.4.1 lib/mws.rb
peddler-2.4.0 lib/mws.rb
peddler-2.3.0 lib/mws.rb