Sha256: 209ca83871150ec4da0c182637d2ecce732103fb7f39d45c0293ae24334f8ef7
Contents?: true
Size: 662 Bytes
Versions: 4
Compression:
Stored size: 662 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' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
peddler-0.10.0 | lib/mws.rb |
peddler-0.9.2 | lib/mws.rb |
peddler-0.9.1 | lib/mws.rb |
peddler-0.9.0 | lib/mws.rb |