Class: Amazon::AWS::VehiclePartSearch

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

Overview

Search for parts for a given vehicle.

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(year, make_id, model_id, parameters = {}) ⇒ VehiclePartSearch

Find parts for a given year, make_id and model_id of vehicle. parameters is an optional hash of parameters that further refine the scope of the search.

Example:

vps = VehiclePartSearch.new( 2008, 73, 6039,

{ ‘TrimId’ => 20, ‘EngineId’ => 8914 } )

In this example, we look for parts that will fit a 2008 model Audi R8 with Base trim and a 4.2L V8 Gas DOHC Distributorless Naturally Aspirated Bosch Motronic Electronic FI MFI engine.

Note that pagination of VehiclePartSearch results is not currently supported.

Use VehicleSearch to learn the MakeId and ModelId of the vehicle in which you are interested.



1305
1306
1307
1308
1309
# File 'lib/ruby-paa/aws.rb', line 1305

def initialize(year, make_id, model_id, parameters={})
 super( { 'Year'	   => year,
 'MakeId'  => make_id,
 'ModelId' => model_id }.merge( parameters ) )
end