Class: Amazon::AWS::VehiclePartLookup
- Defined in:
- lib/amazon/aws.rb
Overview
Look up individual vehicle parts.
Constant Summary
Constants inherited from Operation
Instance Attribute Summary
Attributes inherited from Operation
#kind, #params, #response_group
Instance Method Summary collapse
-
#initialize(item_id, parameters = {}) ⇒ VehiclePartLookup
constructor
Look up a particular vehicle part.
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.
1276 1277 1278 |
# File 'lib/amazon/aws.rb', line 1276 def initialize(item_id, parameters={}) super( { 'ItemId' => item_id }.merge( parameters ) ) end |