Sha256: 6d075f78cb04bbb4ddf1a2f13f6b69e0035bda619505ff75b760cc03dd87646c
Contents?: true
Size: 1.11 KB
Versions: 3
Compression:
Stored size: 1.11 KB
Contents
# Standard library dependencies. require 'base64' require 'forwardable' require 'openssl' require 'time' # External dependencies. require 'addressable/uri' require 'faraday' require 'nokogiri' # Internal dependencies. require 'vacuum/endpoint/base' require 'vacuum/request/base' require 'vacuum/request/signature/authentication' require 'vacuum/request/signature/builder' require 'vacuum/request/utils' require 'vacuum/response/base' require 'vacuum/response/utils' require 'vacuum/version' # Vacuum is a Ruby wrapper to various Amazon Web Services (AWS) APIs. module Vacuum class BadLocale < ArgumentError; end class MissingKey < ArgumentError; end class MissingSecret < ArgumentError; end class << self def new(api, &blk) case api when /^mws/ require 'vacuum/mws' Request::MWS.new do |config| config.api = api.slice(4, api.size).to_sym blk.call config end when :product_advertising require 'vacuum/product_advertising' Request::ProductAdvertising.new &blk else raise NotImplementedError end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vacuum-0.2.0 | lib/vacuum.rb |
vacuum-0.2.0.pre.1 | lib/vacuum.rb |
vacuum-0.2.0.pre | lib/vacuum.rb |