Sha256: f545f40614df4efb2cdef8832c3d99ffe755901f2bdf47a159c96f6f37084268

Contents?: true

Size: 584 Bytes

Versions: 1

Compression:

Stored size: 584 Bytes

Contents

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

%w{cart_operations lookup_operations search_operations builder cart
   error locale request response}.each do |f|
  require "vacuum/#{f}"
end

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

  # @param [#to_sym] locale a locale key
  # @return [Vacuum::Request] a request
  #
  # @note The locale key may be any of the following: +ca+, +cn+, +de+,
  # +es+, +fr+, +it+, +jp+, +uk+, or +us+.
  def self.[](locale)
    @requests[locale] ||= Request.new(locale)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vacuum-0.0.1 lib/vacuum.rb