Class: Amazon::AWS::VehiclePartLookup

Inherits:
Operation
  • Object
show all
Defined in:
lib/ruby-paa/aws.rb

Overview

Look up individual vehicle parts.

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(item_id, parameters = {}) ⇒ VehiclePartLookup

Look up a particular vehicle part. item_id is the ASIN of the part in question and parameters is an optional hash of parameters that further refine the scope of the search.

Although the item_id alone is enough to locate the part, providing parameters can be useful in determining whether the part looked up is a fit for a particular vehicle type, as with the VehiclePartFit response group.

Example:

vpl = VehiclePartLookup.new( 'B000C1ZLI8',

{ ‘Year’ => 2008, ‘MakeId’ => 73, ‘ModelId’ => 6039, ‘TrimId’ => 20 } )

Here, we search for a 2008 model Audi R8 with Base trim. The required Ids can be found using VehiclePartSearch.



1273
1274
1275
# File 'lib/ruby-paa/aws.rb', line 1273

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