Sha256: a9fb37236ce4850094a1d96c10c6d7ffd0b45030fe588b4bbc600e0282bc807b

Contents?: true

Size: 398 Bytes

Versions: 1

Compression:

Stored size: 398 Bytes

Contents

module AliExpress
  class Product < Base
    class << self
      def find(id)
        post(api_call: 'api.findAeProductById', params: { productId: id })
      end

      private

      def get(params)
        super(default_params.merge(params))
      end

      def default_params
        {
          api_namespace: 'aliexpress.open',
          api_version: 1
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aliexpress-0.4 lib/aliexpress/product.rb