Sha256: 2db15389ff788f349430d9d6b0296e16eb36f71c87d86b4c877dbc616976d9a3

Contents?: true

Size: 662 Bytes

Versions: 1

Compression:

Stored size: 662 Bytes

Contents

require 'forwardable'
require 'net/http'
require 'nokogiri'
require 'openssl'

require 'amazon_product/error'
require 'amazon_product/hash_builder'
require 'amazon_product/locale'
require 'amazon_product/operations'
require 'amazon_product/request'
require 'amazon_product/response'

# 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.0.pre.1 lib/amazon_product.rb