Sha256: ac388733e3b8174ea011330e2cdc063152818ff2799baf400228a563c0492ce5

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

require 'nokogiri'
require 'openssl'

%w{builder error locale operations request response}.each do |f|
  require "amazon_product/#{f}"
end

# Amazon Product is a Ruby wrapper to the Amazon Product Advertising API.
module AmazonProduct
  @requests = Hash.new

  # A request.
  #
  # Takes an Amazon locale as argument. This can be +ca+, +cn+, +de+, +fr+,
  # +it+, +jp+, +uk+, or +us+.
  #
  # The library will cache one request per locale.
  def self.[](locale)
    @requests[locale] ||= Request.new(locale)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amazon_product-3.0.1 lib/amazon_product.rb