Class: Amazon::AWS::ItemLookup
Overview
This class of look-up deals with searching for specific items by some uniquely identifying attribute, such as the ASIN (*A*mazon *S*tandard *I*tem *N*umber).
Direct Known Subclasses
Constant Summary
Constants inherited from Operation
Instance Attribute Summary
Attributes inherited from Operation
#kind, #params, #response_group
Instance Method Summary collapse
-
#initialize(id_type, parameters) ⇒ ItemLookup
constructor
Look up a specific item in the AWS catalogue.
Methods inherited from Operation
Constructor Details
#initialize(id_type, parameters) ⇒ ItemLookup
Look up a specific item in the AWS catalogue. id_type is the type of identifier and parameters is a hash that identifies the item to be located and narrows the scope of the search.
Example:
il = ItemLookup.new( 'ASIN', { 'ItemId' => 'B000AE4QEC'
‘MerchantId’ => ‘Amazon’ } )
In the above example, we search for an item, based on its ASIN. The use of MerchantId restricts the offers returned to those for sale by Amazon (as opposed to third-party sellers).
1006 1007 1008 |
# File 'lib/amazon/aws.rb', line 1006 def initialize(id_type, parameters) super( { 'IdType' => id_type }.merge( parameters ) ) end |