Sha256: 85bbd0563d6924f1a7f450b78b5f8077542c760ec41b6afbfe6351562484e697

Contents?: true

Size: 708 Bytes

Versions: 7

Compression:

Stored size: 708 Bytes

Contents

require 'forwardable'
require 'mws/cart_information'
require 'mws/customer_information'
require 'mws/feeds'
require 'mws/finances'
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

7 entries across 7 versions & 1 rubygems

Version Path
peddler-1.2.0 lib/mws.rb
peddler-1.1.1 lib/mws.rb
peddler-1.1.0 lib/mws.rb
peddler-1.0.2 lib/mws.rb
peddler-1.0.1 lib/mws.rb
peddler-1.0.0 lib/mws.rb
peddler-0.19.0 lib/mws.rb