Class: Amazon::AWS::SimilarityLookup

Inherits:
Operation
  • Object
show all
Defined in:
lib/ruby-paa/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, #query_parameters, #response_group_orig=

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.



1196
1197
1198
# File 'lib/ruby-paa/aws.rb', line 1196

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