Class: Amazon::AWS::SimilarityLookup

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

Overview

Similarity look-up is for items similar to others.

Constant Summary

Constants inherited from Operation

Operation::OPERATIONS

Instance Attribute Summary

Attributes inherited from Operation

#kind, #params, #response_group

Instance Method Summary collapse

Methods inherited from Operation

#batch, #batch_parameters

Constructor Details

#initialize(asin, parameters = {}) ⇒ SimilarityLookup

Look up items similar to asin, which can be a single item or an array. parameters is an optional hash of parameters that further refine the scope of the search.

Example:

sl = SimilarityLookup.new( 'B000051WBE' )

In the above example, we search for items similar to the one with ASIN B000051WBE.



1220
1221
1222
# File 'lib/amazon/aws.rb', line 1220

def initialize(asin, parameters={})
	super( { 'ItemId' => asin.to_a.join( ',' ) }.merge( parameters ) )
end