Class Amazon::AWS::Operation
In: lib/amazon/aws.rb
Parent: Object

This is the base class of all AWS operations.

Methods

new  

Constants

OPERATIONS = %w[ BrowseNodeLookup CustomerContentLookup CustomerContentSearch Help ItemLookup ItemSearch ListLookup ListSearch SellerListingLookup SellerListingSearch SellerLookup SimilarityLookup TagLookup TransactionLookup CartAdd CartClear CartCreate CartGet CartModify ]   These are the types of AWS operation currently implemented by Ruby/AWS.
PARAMETERS = %w[ Actor Artist AudienceRating Author Brand BrowseNode City Composer Conductor Director Keywords Manufacturer MusicLabel Neighborhood Orchestra Power Publisher TextStream Title ]   These are the valid search parameters that can be used with ItemSearch.
OPT_PARAMETERS = %w[ Availability Condition MaximumPrice MerchantId MinimumPrice OfferStatus Sort ]
ALL_PARAMETERS = PARAMETERS + OPT_PARAMETERS

Attributes

kind  [R] 
params  [RW] 

Public Class methods

[Source]

# File lib/amazon/aws.rb, line 586
      def initialize(parameters)

        op_kind = self.class.to_s.sub( /^.*::/, '' )
        unless OPERATIONS.include?( op_kind ) || op_kind == 'MultipleOperation'
          raise "Bad operation: #{op_kind}"
        end
        #raise 'Too many parameters' if parameters.size > 10

        @kind = op_kind
        @params = { 'Operation' => op_kind }.merge( parameters )
      end

[Validate]