Class: Amazon::AWS::ResponseGroup

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon/aws.rb

Overview

Response groups determine which data pertaining to the item(s) being sought is returned. They strongly influence the amount of data returned, so you should always use the smallest response group(s) containing the data of interest to you, to avoid masses of unnecessary data being returned.

Constant Summary collapse

DEFAULT =

The default type of response group to use with each type of operation.

{ 'BrowseNodeLookup'	  => [ :BrowseNodeInfo, :TopSellers ],
		  'CustomerContentLookup' => [ :CustomerInfo, :CustomerLists ],
		  'CustomerContentSearch' => :CustomerInfo,
		  'Help'		  => :Help,
		  'ItemLookup'		  => :Large,
		  'ItemSearch'		  => :Large,
		  'ListLookup'		  => [ :ListInfo, :Small ],
		  'ListSearch'		  => :ListInfo,
		  'SellerListingLookup'	  => :SellerListing,
		  'SellerListingSearch'	  => :SellerListing,
		  'SellerLookup'	  => :Seller,
		  'SimilarityLookup'	  => :Large,
		  'TagLookup'		  => [ :Tags, :TagsSummary ],
		  'TransactionLookup'	  => :TransactionDetails,
		  'VehiclePartLookup'	  => :VehiclePartFit,
		  'VehiclePartSearch'	  => :VehicleParts,
		  'VehicleSearch'	  => :VehicleMakes
}

Instance Method Summary collapse

Constructor Details

#initialize(*rg) ⇒ ResponseGroup

Define a set of one or more response groups to be applied to items retrieved by an AWS operation.

Example:

rg = ResponseGroup.new( 'Medium', 'Offers', 'Reviews' )


1391
1392
1393
# File 'lib/amazon/aws.rb', line 1391

def initialize(*rg)
	@list = rg.join( ',' )
end

Instance Method Details

#to_sObject

We need a form we can interpolate into query strings.



1398
1399
1400
# File 'lib/amazon/aws.rb', line 1398

def to_s	# :nodoc:
	@list
end